Skip to content

Commit

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

drivers/gpu/drm/amd/amdgpu/si.c:1342:5-10: WARNING: Comparison to bool

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Zheng Bin authored and Alex Deucher committed Sep 15, 2020
1 parent 4bbbe77 commit e66cdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/si.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ static void si_vga_set_state(struct amdgpu_device *adev, bool state)
uint32_t temp;

temp = RREG32(CONFIG_CNTL);
if (state == false) {
if (!state) {
temp &= ~(1<<0);
temp |= (1<<1);
} else {
Expand Down

0 comments on commit e66cdf2

Please sign in to comment.