Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e70f2f1b authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Rusty Russell
Browse files

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: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent c6fd4701
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;