]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mv643xx_eth: Do not modify struct netdev tx_queue_len
authorDale Farnsworth <dale@farnsworth.org>
Mon, 1 Oct 2007 23:02:18 +0000 (16:02 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 2 Oct 2007 16:55:10 +0000 (12:55 -0400)
This driver erroneously zeros dev->tx_queue_len, since
mp->tx_ring_size has not yet been initialized.  Actually,
the driver shouldn't modify tx_queue_len at all and should
leave the value set by alloc_etherdev(), currently 1000.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/mv643xx_eth.c

index 34288fe038c38c5900cb6cee01ca985e7968d483..315335671f0f06f2a2f9357d17c7ca8a9c4f8296 100644 (file)
@@ -1357,7 +1357,6 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
 #endif
 
        dev->watchdog_timeo = 2 * HZ;
-       dev->tx_queue_len = mp->tx_ring_size;
        dev->base_addr = 0;
        dev->change_mtu = mv643xx_eth_change_mtu;
        dev->do_ioctl = mv643xx_eth_do_ioctl;