projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6fd470
)
virtnet: remove double ether_setup
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Thu, 6 Dec 2007 14:21:46 +0000
(15:21 +0100)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:07 +0000
(23:50 +1100)
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>
drivers/net/virtio_net.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index 6e0a9fefe6cb7fb126b6d37256be7906bf470e75..be5688f5e9310d30376e5fb98c6221dd1b33bc4c 100644
(file)
--- 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;