mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amd/powerplay: remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
7e91366420
commit
93a4aec218
@@ -239,7 +239,7 @@ static int pp_set_powergating_state(void *handle,
|
||||
|
||||
/* Enable/disable GFX per cu powergating through SMU */
|
||||
return hwmgr->hwmgr_func->enable_per_cu_power_gating(hwmgr,
|
||||
state == AMD_PG_STATE_GATE ? true : false);
|
||||
state == AMD_PG_STATE_GATE);
|
||||
}
|
||||
|
||||
static int pp_suspend(void *handle)
|
||||
|
||||
@@ -113,7 +113,7 @@ int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
enabled = ret == 0 ? true : false;
|
||||
enabled = ret == 0;
|
||||
|
||||
cgs_notify_dpm_enabled(hwmgr->device, enabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user