]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitb6e79d9a314ebe5fc44f882c607869d8f7ffb4a1
tree1aaad4d8c86537a4ca126cfb38e15b38215992c6
parentfd90456c757da8bcb75dd0d9221581008c01e380
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