aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/arc/emac_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/arc/emac_main.c b/drivers/net/ethernet/arc/emac_main.c
index 55d79cb53a79..9e1601487263 100644
--- a/drivers/net/ethernet/arc/emac_main.c
+++ b/drivers/net/ethernet/arc/emac_main.c
@@ -149,8 +149,6 @@ static void arc_emac_tx_clean(struct net_device *ndev)
149 struct sk_buff *skb = tx_buff->skb; 149 struct sk_buff *skb = tx_buff->skb;
150 unsigned int info = le32_to_cpu(txbd->info); 150 unsigned int info = le32_to_cpu(txbd->info);
151 151
152 *txbd_dirty = (*txbd_dirty + 1) % TX_BD_NUM;
153
154 if ((info & FOR_EMAC) || !txbd->data) 152 if ((info & FOR_EMAC) || !txbd->data)
155 break; 153 break;
156 154
@@ -180,6 +178,8 @@ static void arc_emac_tx_clean(struct net_device *ndev)
180 txbd->data = 0; 178 txbd->data = 0;
181 txbd->info = 0; 179 txbd->info = 0;
182 180
181 *txbd_dirty = (*txbd_dirty + 1) % TX_BD_NUM;
182
183 if (netif_queue_stopped(ndev)) 183 if (netif_queue_stopped(ndev))
184 netif_wake_queue(ndev); 184 netif_wake_queue(ndev);
185 } 185 }