aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2007-12-06 09:21:46 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-02-04 07:50:07 -0500
commite70f2f1bb8c8cf08ba0d836466f77eea27dd3474 (patch)
tree9027faa1ad6e6dbe848887454dc0718d7714fcf0 /drivers
parentc6fd47011b4bdebad3f1513bac75fe4895e332ee (diff)
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. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 6e0a9fefe6cb..be5688f5e931 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -307,7 +307,6 @@ static int virtnet_probe(struct virtio_device *vdev)
307 return -ENOMEM; 307 return -ENOMEM;
308 308
309 /* Set up network device as normal. */ 309 /* Set up network device as normal. */
310 ether_setup(dev);
311 dev->open = virtnet_open; 310 dev->open = virtnet_open;
312 dev->stop = virtnet_close; 311 dev->stop = virtnet_close;
313 dev->hard_start_xmit = start_xmit; 312 dev->hard_start_xmit = start_xmit;