]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/navi10: fix unsigned comparison with 0
authorChenTao <chentao107@huawei.com>
Wed, 6 May 2020 05:11:13 +0000 (13:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 May 2020 20:51:39 +0000 (16:51 -0400)
commit4a3a57aff7daa09a39d279cb7b423d1c9366e476
tree0d0a30c1c1b4e489eedd465e633d7ea5069f728d
parent0667f3c9f8d63e306b26043a58ede292eb34761d
drm/amdgpu/navi10: fix unsigned comparison with 0

Fixes warning because size is uint32_t and can never be negtative

drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1296:12: warning:
comparison of unsigned expression < 0 is always false [-Wtype-limits]
   if (size < 0)

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: ChenTao <chentao107@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c