From: Eric W. Biederman Date: Sun, 29 Nov 2009 22:25:29 +0000 (+0000) Subject: net: Simplify loopback and improve batching. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=999b6d39abb4fc446f3465ca4e0a7ac747f49aec;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git net: Simplify loopback and improve batching. Defer calling unregister_netdevice_queue to cleanup_net. It's simpler and it allows the loopback device to land in the same batch as other network devices. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index c9f65574378..eae4ad749e9 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -212,15 +212,7 @@ out: return err; } -static __net_exit void loopback_net_exit(struct net *net) -{ - struct net_device *dev = net->loopback_dev; - - unregister_netdev(dev); -} - /* Registered in net/core/dev.c */ struct pernet_operations __net_initdata loopback_net_ops = { .init = loopback_net_init, - .exit = loopback_net_exit, };