diff options
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 9f5387249f24..665c29098e3c 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
@@ -1473,9 +1473,9 @@ static void macb_init_rings(struct macb *bp) | |||
1473 | for (i = 0; i < TX_RING_SIZE; i++) { | 1473 | for (i = 0; i < TX_RING_SIZE; i++) { |
1474 | bp->queues[0].tx_ring[i].addr = 0; | 1474 | bp->queues[0].tx_ring[i].addr = 0; |
1475 | bp->queues[0].tx_ring[i].ctrl = MACB_BIT(TX_USED); | 1475 | bp->queues[0].tx_ring[i].ctrl = MACB_BIT(TX_USED); |
1476 | bp->queues[0].tx_head = 0; | ||
1477 | bp->queues[0].tx_tail = 0; | ||
1478 | } | 1476 | } |
1477 | bp->queues[0].tx_head = 0; | ||
1478 | bp->queues[0].tx_tail = 0; | ||
1479 | bp->queues[0].tx_ring[TX_RING_SIZE - 1].ctrl |= MACB_BIT(TX_WRAP); | 1479 | bp->queues[0].tx_ring[TX_RING_SIZE - 1].ctrl |= MACB_BIT(TX_WRAP); |
1480 | 1480 | ||
1481 | bp->rx_tail = 0; | 1481 | bp->rx_tail = 0; |