Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: net: lmc: remove redundant variable next_rx

Variable next_rx is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'next_rx' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Ian King and committed by
David S. Miller
005c1c0e 676dce64

-2
-2
drivers/net/wan/lmc/lmc_main.c
··· 1491 1491 lmc_softc_t *sc = dev_to_sc(dev); 1492 1492 int i; 1493 1493 int rx_work_limit = LMC_RXDESCS; 1494 - unsigned int next_rx; 1495 1494 int rxIntLoopCnt; /* debug -baz */ 1496 1495 int localLengthErrCnt = 0; 1497 1496 long stat; ··· 1504 1505 rxIntLoopCnt = 0; /* debug -baz */ 1505 1506 1506 1507 i = sc->lmc_next_rx % LMC_RXDESCS; 1507 - next_rx = sc->lmc_next_rx; 1508 1508 1509 1509 while (((stat = sc->lmc_rxring[i].status) & LMC_RDES_OWN_BIT) != DESC_OWNED_BY_DC21X4) 1510 1510 {