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.10.7~1332^2~18^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89cf8b06378ff930fece568d0f18dd2f719694f9;p=platform%2Fkernel%2Flinux-rpi.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 9801bb6..17fb2ef 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!"); }