mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
c6fd47011b
commit
e70f2f1bb8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue