Commit d0217284 authored by Colin Ian King's avatar Colin Ian King Committed by Jakub Kicinski

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221024143501.2163720-1-colin.i.king@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bb214ac4
...@@ -814,7 +814,6 @@ rio_free_tx (struct net_device *dev, int irq) ...@@ -814,7 +814,6 @@ rio_free_tx (struct net_device *dev, int irq)
{ {
struct netdev_private *np = netdev_priv(dev); struct netdev_private *np = netdev_priv(dev);
int entry = np->old_tx % TX_RING_SIZE; int entry = np->old_tx % TX_RING_SIZE;
int tx_use = 0;
unsigned long flag = 0; unsigned long flag = 0;
if (irq) if (irq)
...@@ -839,7 +838,6 @@ rio_free_tx (struct net_device *dev, int irq) ...@@ -839,7 +838,6 @@ rio_free_tx (struct net_device *dev, int irq)
np->tx_skbuff[entry] = NULL; np->tx_skbuff[entry] = NULL;
entry = (entry + 1) % TX_RING_SIZE; entry = (entry + 1) % TX_RING_SIZE;
tx_use++;
} }
if (irq) if (irq)
spin_unlock(&np->tx_lock); spin_unlock(&np->tx_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment