Skip to contentSkip to conversation

virtnet: remove double ether_setup

PATCH Superseded Christian Borntraeger 1 participant 1 message Dec 6, 2007

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtnet: remove double ether_setup

Hello Rusty,

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

---
 drivers/net/virtio_net.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
Index: 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: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4