]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/powerplay: Fix indentation in vega10_fan_ctrl_reset_fan_speed_to_default()
authorTom St Denis <tom.stdenis@amd.com>
Thu, 7 Sep 2017 16:42:38 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:32:14 +0000 (14:32 -0400)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c

index 7a25e226d7d3ce9f677b69cdcef796b6da18b258..664133eeb59c33736ac9023120ab36a1d34a6716 100644 (file)
@@ -307,17 +307,13 @@ int vega10_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr,
 */
 int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr)
 {
-       int result;
-
        if (hwmgr->thermal_controller.fanInfo.bNoFan)
                return 0;
 
-       if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl)) {
-               result = vega10_fan_ctrl_start_smc_fan_control(hwmgr);
-       } else
-               result = vega10_fan_ctrl_set_default_mode(hwmgr);
-
-       return result;
+       if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl))
+               return vega10_fan_ctrl_start_smc_fan_control(hwmgr);
+       else
+               return vega10_fan_ctrl_set_default_mode(hwmgr);
 }
 
 /**