Skip to contentSkip to conversation

clk: imx: pll14xx: drop unused variable

PATCH Applied Peng Fan 2 participants 2 messages Apr 25, 2019

Subsystems (3)
lore
Share & tools
lore

Peng Fan

author reviewer
#0 lore raw

PATCH 1/1 clk: imx: pll14xx: drop unused variable

It does not make sense to only get value from pll->base and assign to a local variable when recalc_rate.

---
 drivers/clk/imx/clk-pll14xx.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/clk/imx/clk-pll14xx.c +2 -4
index 1acfa3e3cfb4..12e584185daf 100644
@@ -74,10 +74,9 @@ static unsigned long clk_pll1416x_recalc_rate(struct clk_hw *hw,
 						  unsigned long parent_rate)
 {
 	struct clk_pll14xx *pll = to_clk_pll14xx(hw);
-	u32 mdiv, pdiv, sdiv, pll_gnrl, pll_div;
+	u32 mdiv, pdiv, sdiv, pll_div;
 	u64 fvco = parent_rate;
 
-	pll_gnrl = readl_relaxed(pll->base);
 	pll_div = readl_relaxed(pll->base + 4);
 	mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT;
 	pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT;
@@ -93,11 +92,10 @@ static unsigned long clk_pll1443x_recalc_rate(struct clk_hw *hw,
 						  unsigned long parent_rate)
 {
 	struct clk_pll14xx *pll = to_clk_pll14xx(hw);
-	u32 mdiv, pdiv, sdiv, pll_gnrl, pll_div_ctl0, pll_div_ctl1;
+	u32 mdiv, pdiv, sdiv, pll_div_ctl0, pll_div_ctl1;
 	short int kdiv;
 	u64 fvco = parent_rate;
 
-	pll_gnrl = readl_relaxed(pll->base);
 	pll_div_ctl0 = readl_relaxed(pll->base + 4);
 	pll_div_ctl1 = readl_relaxed(pll->base + 8);
 	mdiv = (pll_div_ctl0 & MDIV_MASK) >> MDIV_SHIFT;
Signature · 1 line
2.16.4
maintainer Applied
#1 lore raw

Quoting Peng Fan (2019-04-25 03:14:28)

Quoted 5 lines

It does not make sense to only get value from pll->base and assign to a local variable when recalc_rate.

---

Applied to clk-next