]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-meson-spicc: Remove set but never used variable 'data' from meson_spicc_rese...
authorLee Jones <lee.jones@linaro.org>
Fri, 17 Jul 2020 13:54:16 +0000 (14:54 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2020 15:38:48 +0000 (16:38 +0100)
commit5f4c2e6c4650a85b8a6b1b0da3596d5768ea2c34
treedd0b743bc8f61e98e6f46b3a1d1d7dc78c8f5797
parent7d3f3d741126fac4970ddc367993253823e8bff2
spi: spi-meson-spicc: Remove set but never used variable 'data' from meson_spicc_reset_fifo()

Looks like it hasn't ever been checked.

Fixes the following W=1 kernel build warning(s):

 drivers/spi/spi-meson-spicc.c: In function ‘meson_spicc_reset_fifo’:
 drivers/spi/spi-meson-spicc.c:365:6: warning: variable ‘data’ set but not used [-Wunused-but-set-variable]
 365 | u32 data;
 | ^~~~

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: linux-amlogic@lists.infradead.org
Link: https://lore.kernel.org/r/20200717135424.2442271-7-lee.jones@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c