Skip to contentSkip to conversation

drivers: dcn315: remove duplicate assignments

PATCH New Minjie Du 1 participant 1 message Jul 5, 2023

Subsystems (3)
lore
Share & tools
lore

Minjie Du

author
#0 lore raw

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.

---
 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
index b2c4f97af..45b811610 100644
@@ -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