drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid
authorRex Zhu <[email protected]>
Fri, 2 Mar 2018 10:41:41 +0000 (18:41 +0800)
committerAlex Deucher <[email protected]>
Mon, 5 Mar 2018 20:37:46 +0000 (15:37 -0500)
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index 731475b06be7784f5b9fbec0d85ef6f21cfdc7cb..cb9e2f9123113e68915dc5a37fd25bc498398b34 100644 (file)
@@ -4770,7 +4770,7 @@ static bool smu7_check_clk_voltage_valid(struct pp_hwmgr *hwmgr,
        struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
 
        if (table_info == NULL)
-               return -EINVAL;
+               return false;
 
        dep_sclk_table = table_info->vdd_dep_on_sclk;
        min_vddc = dep_sclk_table->entries[0].vddc;