Commit 92998dd4 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

[NETNS]: Remove empty ->init callback.

The netns start-stop engine can happily live with any of
init or exit callbacks set to NULL.
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdd04d98
...@@ -4338,12 +4338,6 @@ int unregister_inet6addr_notifier(struct notifier_block *nb) ...@@ -4338,12 +4338,6 @@ int unregister_inet6addr_notifier(struct notifier_block *nb)
EXPORT_SYMBOL(unregister_inet6addr_notifier); EXPORT_SYMBOL(unregister_inet6addr_notifier);
static int addrconf_net_init(struct net *net)
{
return 0;
}
static void addrconf_net_exit(struct net *net) static void addrconf_net_exit(struct net *net)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -4360,7 +4354,6 @@ static void addrconf_net_exit(struct net *net) ...@@ -4360,7 +4354,6 @@ static void addrconf_net_exit(struct net *net)
} }
static struct pernet_operations addrconf_net_ops = { static struct pernet_operations addrconf_net_ops = {
.init = addrconf_net_init,
.exit = addrconf_net_exit, .exit = addrconf_net_exit,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment