drivers: dcn315: remove duplicate assignments
Subsystems (3)
PATCH 1/1 drivers: dcn315: remove duplicate assignments
make clk_mgr_base->clks.zstate_support avoid double assignment. It looks like the value of new_clocks is unchanged, so there may be no need for repeated assignments.
Signed-off-by Minjie Du <[email protected]>
--- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c +0 -1
@@ -143,7 +143,6 @@ static void dcn315_update_clocks(struct clk_mgr *clk_mgr_base,* if it is safe to lower, but we are already in the lower state, we don't have to do anything * also if safe to lower is false, we just go in the higher state */ - clk_mgr_base->clks.zstate_support = new_clocks->zstate_support;if (safe_to_lower) {/* check that we're not already in lower */ if (clk_mgr_base->clks.pwr_state !=DCN_PWR_STATE_LOW_POWER ) {
Signature · 1 line
2.39.0