drm/amd/display: Remove redundant 'else' statement in dcn1_update_clocks
authorFatemeh Darbehani <fatemeh.darbehani@amd.com>
Thu, 20 Dec 2018 21:54:07 +0000 (16:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Mar 2019 20:09:32 +0000 (15:09 -0500)
[Why]
DM has impelemented new pp_smu interface. 'Else' is not longer needed.

Signed-off-by: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Yongqiang Sun <yongqiang.sun@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c

index a1014e3d8bf75a5698f69481b689ad9af0715802..3b91505063e94590871a61028db5921f09d34cb4 100644 (file)
@@ -246,10 +246,6 @@ static void dcn1_update_clocks(struct clk_mgr *clk_mgr,
                        pp_smu->set_hard_min_fclk_by_freq(&pp_smu->pp_smu, smu_req.hard_min_fclk_mhz);
                        pp_smu->set_hard_min_dcfclk_by_freq(&pp_smu->pp_smu, smu_req.hard_min_dcefclk_mhz);
                        pp_smu->set_min_deep_sleep_dcfclk(&pp_smu->pp_smu, smu_req.min_deep_sleep_dcefclk_mhz);
-               } else {
-                       if (pp_smu->set_display_requirement)
-                               pp_smu->set_display_requirement(&pp_smu->pp_smu, &smu_req);
-                       dcn1_pplib_apply_display_requirements(dc, context);
                }
        }
 
@@ -272,10 +268,6 @@ static void dcn1_update_clocks(struct clk_mgr *clk_mgr,
                        pp_smu->set_hard_min_fclk_by_freq(&pp_smu->pp_smu, smu_req.hard_min_fclk_mhz);
                        pp_smu->set_hard_min_dcfclk_by_freq(&pp_smu->pp_smu, smu_req.hard_min_dcefclk_mhz);
                        pp_smu->set_min_deep_sleep_dcfclk(&pp_smu->pp_smu, smu_req.min_deep_sleep_dcefclk_mhz);
-               } else {
-                       if (pp_smu->set_display_requirement)
-                               pp_smu->set_display_requirement(&pp_smu->pp_smu, &smu_req);
-                       dcn1_pplib_apply_display_requirements(dc, context);
                }
        }