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

net: dl2k: remove variable tx_use

Variable tx_use is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221024143501.2163720-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Colin Ian King and committed by
Jakub Kicinski
d0217284 bb214ac4

-2
-2
drivers/net/ethernet/dlink/dl2k.c
··· 814 814 { 815 815 struct netdev_private *np = netdev_priv(dev); 816 816 int entry = np->old_tx % TX_RING_SIZE; 817 - int tx_use = 0; 818 817 unsigned long flag = 0; 819 818 820 819 if (irq) ··· 838 839 839 840 np->tx_skbuff[entry] = NULL; 840 841 entry = (entry + 1) % TX_RING_SIZE; 841 - tx_use++; 842 842 } 843 843 if (irq) 844 844 spin_unlock(&np->tx_lock);