diff options
author | ChenTao <chentao107@huawei.com> | 2020-05-05 12:57:37 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-05-05 13:12:55 -0400 |
commit | a2eb03a569f7482da3bed651424606da7b960bf8 (patch) | |
tree | 4453ebf64c2f7cbe8238e708f8f064c8d1d7e9ac /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | 54b7feb93fc33c48619472d8b7fce41cc5acafc9 (diff) | |
download | linux-a2eb03a569f7482da3bed651424606da7b960bf8.tar.gz linux-a2eb03a569f7482da3bed651424606da7b960bf8.tar.bz2 linux-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