]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
virtnet: remove double ether_setup
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 6 Dec 2007 14:21:46 +0000 (15:21 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:07 +0000 (23:50 +1100)
Hello Rusty,

virtnet_probe already calls alloc_etherdev, which calls ether_setup.
There is no need to do that again.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c

index 6e0a9fefe6cb7fb126b6d37256be7906bf470e75..be5688f5e9310d30376e5fb98c6221dd1b33bc4c 100644 (file)
@@ -307,7 +307,6 @@ static int virtnet_probe(struct virtio_device *vdev)
                return -ENOMEM;
 
        /* Set up network device as normal. */
-       ether_setup(dev);
        dev->open = virtnet_open;
        dev->stop = virtnet_close;
        dev->hard_start_xmit = start_xmit;