Skip to content

Commit

Permalink
drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_0.c
Browse files Browse the repository at this point in the history
Fixes coccicheck warning:

drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:619:5-11: WARNING: Comparison to bool

Acked-by: Christian König <[email protected]>
Signed-off-by: Zheng Bin <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
zhengbin13 authored and alexdeucher committed Sep 15, 2020
1 parent 89cf8b0 commit 960a06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static void sdma_v5_0_enable(struct amdgpu_device *adev, bool enable)
u32 f32_cntl;
int i;

if (enable == false) {
if (!enable) {
sdma_v5_0_gfx_stop(adev);
sdma_v5_0_rlc_stop(adev);
}
Expand Down

0 comments on commit 960a06f

Please sign in to comment.