diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2007-12-06 14:21:46 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 12:50:07 (GMT) |
commit | e70f2f1bb8c8cf08ba0d836466f77eea27dd3474 (patch) | |
tree | 9027faa1ad6e6dbe848887454dc0718d7714fcf0 /drivers/net | |
parent | c6fd47011b4bdebad3f1513bac75fe4895e332ee (diff) | |
download | linux-fsl-qoriq-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 6e0a9fe..be5688f 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; |