clk: nxp: Remove unused variable
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 5 Feb 2022 10:36:07 +0000 (11:36 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 26 Feb 2022 00:41:38 +0000 (16:41 -0800)
commit703da2aed99c7882486defedb78d5e1cc7f47cf7
treea6c630182b236b3dafeeabb1602e7afe28b983a7
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
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: b04e0b8fd5443 ("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>
drivers/clk/nxp/clk-lpc18xx-cgu.c