diff options
author | 2020-05-05 12:57:37 +0800 | |
---|---|---|
committer | 2020-05-05 13:12:55 -0400 | |
commit | a2eb03a569f7482da3bed651424606da7b960bf8 (patch) | |
tree | 4453ebf64c2f7cbe8238e708f8f064c8d1d7e9ac /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | drm/amdgpu: Avoid integer overflow in amdgpu_device_suspend_display_audio (diff) | |
download | linux-dev-a2eb03a569f7482da3bed651424606da7b960bf8.tar.xz linux-dev-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 <hulkci@huawei.com>
Signed-off-by: ChenTao <chentao107@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions