diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-19 15:26:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-21 03:21:18 +0200 |
commit | a5287acc6ca3c69821ab4c5439be8c0ff30a20cb (patch) | |
tree | ebc0f3938fabf0b1b9e1849c655d77a7b4da2f1f /net/ipv6/sysctl_net_ipv6.c | |
parent | net core: Remove unneded creation of an empty net/core sysctl directory (diff) | |
download | linux-a5287acc6ca3c69821ab4c5439be8c0ff30a20cb.tar.xz linux-a5287acc6ca3c69821ab4c5439be8c0ff30a20cb.zip |
net ipv6: Remove unneded registration of an empty net/ipv6/neigh
sysctl no longer requires explicit creation of directories. The neigh
directory is always populated with at least a default entry so this
should cause no user visible changes.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sysctl_net_ipv6.c')
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 99279c8aaf29..cf1e96a49607 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -16,18 +16,6 @@ #include <net/addrconf.h> #include <net/inet_frag.h> -static struct ctl_table empty[1]; - -static ctl_table ipv6_static_skeleton[] = { - { - .procname = "neigh", - .maxlen = 0, - .mode = 0555, - .child = empty, - }, - { } -}; - static ctl_table ipv6_table_template[] = { { .procname = "route", @@ -160,18 +148,3 @@ void ipv6_sysctl_unregister(void) unregister_net_sysctl_table(ip6_header); unregister_pernet_subsys(&ipv6_sysctl_net_ops); } - -static struct ctl_table_header *ip6_base; - -int ipv6_static_sysctl_register(void) -{ - ip6_base = register_net_sysctl_table(&init_net, net_ipv6_ctl_path, ipv6_static_skeleton); - if (ip6_base == NULL) - return -ENOMEM; - return 0; -} - -void ipv6_static_sysctl_unregister(void) -{ - unregister_net_sysctl_table(ip6_base); -} |