]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/mv643xx_eth.c
mv643xx_eth: fix double add_timer() on the receive oom timer
[linux-2.6-omap-h63xx.git] / drivers / net / mv643xx_eth.c
index af279f26c4070cbf883fb3b2b39ca89172236830..8a91d79383dd01cc12b9f7bc01e0bcb6334143f2 100644 (file)
@@ -509,10 +509,8 @@ static void rxq_refill(struct rx_queue *rxq)
                skb_reserve(skb, 2);
        }
 
-       if (rxq->rx_desc_count != rxq->rx_ring_size) {
-               rxq->rx_oom.expires = jiffies + (HZ / 10);
-               add_timer(&rxq->rx_oom);
-       }
+       if (rxq->rx_desc_count != rxq->rx_ring_size)
+               mod_timer(&rxq->rx_oom, jiffies + (HZ / 10));
 
        spin_unlock_irqrestore(&mp->lock, flags);
 }