Commit 93a4aec2 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Alex Deucher

drm/amd/powerplay: remove unneeded conversions to bool

Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7e913664
...@@ -239,7 +239,7 @@ static int pp_set_powergating_state(void *handle, ...@@ -239,7 +239,7 @@ static int pp_set_powergating_state(void *handle,
/* Enable/disable GFX per cu powergating through SMU */ /* Enable/disable GFX per cu powergating through SMU */
return hwmgr->hwmgr_func->enable_per_cu_power_gating(hwmgr, 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) static int pp_suspend(void *handle)
......
...@@ -113,7 +113,7 @@ int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr) ...@@ -113,7 +113,7 @@ int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
NULL, NULL); NULL, NULL);
} }
enabled = ret == 0 ? true : false; enabled = ret == 0;
cgs_notify_dpm_enabled(hwmgr->device, enabled); cgs_notify_dpm_enabled(hwmgr->device, enabled);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment