[PATCH v2 1/7] clk: nxp: Remove unused variable

Stephen Boyd sboyd at kernel.org
Fri Feb 25 17:00:48 PST 2022


Quoting Jonathan Neuschäfer (2022-02-05 02:36:07)
> 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 at intel.com>
> Fixes: b04e0b8fd5443 ("clk: add lpc18xx cgu clk driver")
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
> ---

Applied to clk-next



More information about the linux-arm-kernel mailing list