Skip to content

Commit

Permalink
[NETNS]: Remove empty ->init callback.
Browse files Browse the repository at this point in the history
The netns start-stop engine can happily live with any of
init or exit callbacks set to NULL.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Apr 21, 2008
1 parent cdd04d9 commit 92998dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4338,12 +4338,6 @@ int unregister_inet6addr_notifier(struct notifier_block *nb)

EXPORT_SYMBOL(unregister_inet6addr_notifier);


static int addrconf_net_init(struct net *net)
{
return 0;
}

static void addrconf_net_exit(struct net *net)
{
struct net_device *dev;
Expand All @@ -4360,7 +4354,6 @@ static void addrconf_net_exit(struct net *net)
}

static struct pernet_operations addrconf_net_ops = {
.init = addrconf_net_init,
.exit = addrconf_net_exit,
};

Expand Down

0 comments on commit 92998dd

Please sign in to comment.