Skip to content

Commit

Permalink
drm/amdgpu: Delete two unneeded bool conversions
Browse files Browse the repository at this point in the history
The result of an expression consisting of a single relational operator is
already of the bool type and does not need to be evaluated explicitly.

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Zhen Lei authored and Alex Deucher committed May 11, 2021
1 parent ea23ff0 commit 0bb6d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,9 @@ static int mmhub_v2_3_set_clockgating(struct amdgpu_device *adev,
return 0;

mmhub_v2_3_update_medium_grain_clock_gating(adev,
state == AMD_CG_STATE_GATE ? true : false);
state == AMD_CG_STATE_GATE);
mmhub_v2_3_update_medium_grain_light_sleep(adev,
state == AMD_CG_STATE_GATE ? true : false);
state == AMD_CG_STATE_GATE);

return 0;
}
Expand Down

0 comments on commit 0bb6d3d

Please sign in to comment.