diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2007-12-06 17:21:46 +0300 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 15:50:07 +0300 |
commit | e70f2f1bb8c8cf08ba0d836466f77eea27dd3474 (patch) | |
tree | 9027faa1ad6e6dbe848887454dc0718d7714fcf0 /drivers/net | |
parent | c6fd47011b4bdebad3f1513bac75fe4895e332ee (diff) | |
download | linux-e70f2f1bb8c8cf08ba0d836466f77eea27dd3474.tar.xz |
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/net')
-rw-r--r-- | drivers/net/virtio_net.c | 1 |
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) 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; |