Skip to content

Commit 0bb6d3d

Browse files
Zhen Leialexdeucher
authored andcommitted
drm/amdgpu: Delete two unneeded bool conversions
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ea23ff0 commit 0bb6d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ static int mmhub_v2_3_set_clockgating(struct amdgpu_device *adev,
569569
return 0;
570570

571571
mmhub_v2_3_update_medium_grain_clock_gating(adev,
572-
state == AMD_CG_STATE_GATE ? true : false);
572+
state == AMD_CG_STATE_GATE);
573573
mmhub_v2_3_update_medium_grain_light_sleep(adev,
574-
state == AMD_CG_STATE_GATE ? true : false);
574+
state == AMD_CG_STATE_GATE);
575575

576576
return 0;
577577
}

0 commit comments

Comments
 (0)