aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorChenTao <[email protected]>2020-05-05 04:57:37 +0000
committerAlex Deucher <[email protected]>2020-05-05 17:12:55 +0000
commita2eb03a569f7482da3bed651424606da7b960bf8 (patch)
tree4453ebf64c2f7cbe8238e708f8f064c8d1d7e9ac /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentdrm/amdgpu: Avoid integer overflow in amdgpu_device_suspend_display_audio (diff)
downloadkernel-a2eb03a569f7482da3bed651424606da7b960bf8.tar.gz
kernel-a2eb03a569f7482da3bed651424606da7b960bf8.zip
drm/radeon: fix unsigned comparison with 0
Fixes warning because pipe is unsigned long and can never be negtative vers/gpu/drm/radeon/radeon_kms.c:831:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (pipe < 0 || pipe >= rdev->num_crtc) { drivers/gpu/drm/radeon/radeon_kms.c:857:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (pipe < 0 || pipe >= rdev->num_crtc) { Reported-by: Hulk Robot <[email protected]> Signed-off-by: ChenTao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions