virtio_net: remove double ether_setup
Subsystems (5)
PATCH RESEND 1/1 virtio_net: remove double ether_setup
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.
--- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
@@ -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
A message that is not in the archive (sent off-list or not yet received): 200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org
Rusty Russell
Acked-byQuoted 7 lines · On Tuesday 11 December 2007 22:38:53 Christian Borntraeger wrote:
Hello Rusty,
this is a small fix for
virtio_net.virtnet_probealready callsalloc_etherdev, which callsether_setup. There is no need to do that again.Signed-off-by Christian Borntraeger <[email protected]>
Can you send straight to akpm or davem? I'm supposed to be on vacation at the moment (and not doing a very good job :)
Thanks,
Rusty.
-------------------------------------------------------------------------
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
PATCH 1/1 virtio_net: remove double ether_setup
Am Mittwoch, 12. Dezember 2007 schrieb Rusty Russell:
Quoted 1 line
Can you send straight to akpm or davem? I'm supposed to be on vacation at
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.
--- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
@@ -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);