Skip to content

Commit 703da2a

Browse files
neuschaeferbebarino
authored andcommitted
clk: nxp: Remove unused variable
GCC warns: > ../drivers/clk/nxp/clk-lpc18xx-cgu.c: In function ‘lpc18xx_pll1_recalc_rate’: > ../drivers/clk/nxp/clk-lpc18xx-cgu.c:460:13: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable] > 460 | u32 stat, ctrl; > | ^~~~ Get rid of the (apparently) useless read from the PLL1_STAT register and the declaration of stat. Reported-by: kernel test robot <lkp@intel.com> Fixes: b04e0b8 ("clk: add lpc18xx cgu clk driver") Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Link: https://lore.kernel.org/r/20220205103613.1216218-2-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e783362 commit 703da2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/nxp/clk-lpc18xx-cgu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,8 @@ static unsigned long lpc18xx_pll1_recalc_rate(struct clk_hw *hw,
457457
struct lpc18xx_pll *pll = to_lpc_pll(hw);
458458
u16 msel, nsel, psel;
459459
bool direct, fbsel;
460-
u32 stat, ctrl;
460+
u32 ctrl;
461461

462-
stat = readl(pll->reg + LPC18XX_CGU_PLL1_STAT);
463462
ctrl = readl(pll->reg + LPC18XX_CGU_PLL1_CTRL);
464463

465464
direct = (ctrl & LPC18XX_PLL1_CTRL_DIRECT) ? true : false;

0 commit comments

Comments
 (0)