]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: remove conversion to bool in amdgpu_device.c
authorJason Yan <yanaijie@huawei.com>
Mon, 27 Apr 2020 06:36:55 +0000 (14:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2020 19:52:16 +0000 (15:52 -0400)
commit8a044b0178634191fef875d72319d73507371944
tree1aaad4d8c86537a4ca126cfb38e15b38215992c6
parent40f4cd18408eae9cf554890884a101350dde3521
drm/amdgpu: remove conversion to bool in amdgpu_device.c

The '>' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3004:68-73: WARNING:
conversion to bool not needed here

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c