ag71xx driver: don't refill rx buffers twice
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Dec 2008 08:31:25 +0000 (08:31 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 8 Dec 2008 08:31:25 +0000 (08:31 +0000)
SVN-Revision: 13544

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index 0e30c3a3008da735bb6472697dc2d097cfd3370b..16cb4ddd3910587084ac3949691be9cb261df873 100644 (file)
@@ -649,8 +649,6 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
                done++;
 
                ring->curr++;
-               if ((ring->curr - ring->dirty) > (AG71XX_RX_RING_SIZE / 4))
-                       ag71xx_ring_rx_refill(ag);
        }
 
        ag71xx_ring_rx_refill(ag);