From: Zheng Bin Date: Wed, 9 Sep 2020 13:07:14 +0000 (+0800) Subject: drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c X-Git-Tag: v5.15~2671^2~11^2~56 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=89cf8b06378ff930fece568d0f18dd2f719694f9;p=mirror_ubuntu-kernels.git drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:3563:5-31: WARNING: Comparison to bool Acked-by: Christian König Signed-off-by: Zheng Bin Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 9801bb6daa01..17fb2efdadd3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -3560,7 +3560,7 @@ static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev) break; } - if (adev->gfx.cp_fw_write_wait == false) + if (!adev->gfx.cp_fw_write_wait) DRM_WARN_ONCE("CP firmware version too old, please update!"); }