Skip to content

Commit d9b883a

Browse files
Lee Jonesbroonie
authored andcommitted
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 <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Neil Armstrong <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 78a7f0c commit d9b883a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi-meson-spicc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ static void meson_spicc_setup_xfer(struct meson_spicc_device *spicc,
362362

363363
static void meson_spicc_reset_fifo(struct meson_spicc_device *spicc)
364364
{
365-
u32 data;
366-
367365
if (spicc->data->has_oen)
368366
writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO,
369367
SPICC_ENH_MAIN_CLK_AO,
@@ -373,7 +371,7 @@ static void meson_spicc_reset_fifo(struct meson_spicc_device *spicc)
373371
spicc->base + SPICC_TESTREG);
374372

375373
while (meson_spicc_rxready(spicc))
376-
data = readl_relaxed(spicc->base + SPICC_RXDATA);
374+
readl_relaxed(spicc->base + SPICC_RXDATA);
377375

378376
if (spicc->data->has_oen)
379377
writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO, 0,

0 commit comments

Comments
 (0)