summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-03-15 19:20:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-03-30 06:53:58 +0300
commit93a4aec2180f3950e98b2eedfd231f0eea1ece88 (patch)
treeb6762690913416700bea55b664f52975390fcb33 /drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
parent7e91366420554e7d33fae3a56b41366ce088de04 (diff)
downloadlinux-93a4aec2180f3950e98b2eedfd231f0eea1ece88.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
index 6013ef119ffb..6646e1402a13 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
@@ -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);