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

sundance: remove unused variable cnt

Variable cnt 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>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20221115093137.144002-1-colin.i.king@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Colin Ian King and committed by
Paolo Abeni
710cfc6a b0798310

-2
-2
drivers/net/ethernet/dlink/sundance.c
··· 1414 1414 { 1415 1415 struct netdev_private *np = netdev_priv(dev); 1416 1416 int entry; 1417 - int cnt = 0; 1418 1417 1419 1418 /* Refill the Rx ring buffers. */ 1420 1419 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; ··· 1440 1441 np->rx_ring[entry].frag.length = 1441 1442 cpu_to_le32(np->rx_buf_sz | LastFrag); 1442 1443 np->rx_ring[entry].status = 0; 1443 - cnt++; 1444 1444 } 1445 1445 } 1446 1446 static void netdev_error(struct net_device *dev, int intr_status)