[PATCH resend] virtio_net: remove double ether_setup
From: Christian Borntraeger <hidden>
Date: 2007-12-11 11:38:53
Also in:
kvm, virtualization
From: Christian Borntraeger <hidden>
Date: 2007-12-11 11:38:53
Also in:
kvm, virtualization
Hello Rusty, this is a small fix for virtio_net. virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again. Signed-off-by: Christian Borntraeger <redacted> --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) Index: kvm/drivers/net/virtio_net.c ===================================================================
--- kvm.orig/drivers/net/virtio_net.c
+++ kvm/drivers/net/virtio_net.c@@ -329,11 +329,10 @@ static int virtnet_probe(struct virtio_d dev = alloc_etherdev(sizeof(struct virtnet_info)); if (!dev) 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; dev->features = NETIF_F_HIGHDMA; SET_NETDEV_DEV(dev, &vdev->dev); -------------------------------------------------------------------------
SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php