diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-19 09:26:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-20 21:21:18 -0400 |
commit | a5287acc6ca3c69821ab4c5439be8c0ff30a20cb (patch) | |
tree | ebc0f3938fabf0b1b9e1849c655d77a7b4da2f1f /net/ipv6/af_inet6.c | |
parent | 45bad914987ed526d468247e0a5f5f7acb2066a1 (diff) |
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/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 8ed1b930e75f..461e7896e5d8 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -1111,11 +1111,6 @@ static int __init inet6_init(void) | |||
1111 | if (err) | 1111 | if (err) |
1112 | goto out_sock_register_fail; | 1112 | goto out_sock_register_fail; |
1113 | 1113 | ||
1114 | #ifdef CONFIG_SYSCTL | ||
1115 | err = ipv6_static_sysctl_register(); | ||
1116 | if (err) | ||
1117 | goto static_sysctl_fail; | ||
1118 | #endif | ||
1119 | tcpv6_prot.sysctl_mem = init_net.ipv4.sysctl_tcp_mem; | 1114 | tcpv6_prot.sysctl_mem = init_net.ipv4.sysctl_tcp_mem; |
1120 | 1115 | ||
1121 | /* | 1116 | /* |
@@ -1242,10 +1237,6 @@ ipmr_fail: | |||
1242 | icmp_fail: | 1237 | icmp_fail: |
1243 | unregister_pernet_subsys(&inet6_net_ops); | 1238 | unregister_pernet_subsys(&inet6_net_ops); |
1244 | register_pernet_fail: | 1239 | register_pernet_fail: |
1245 | #ifdef CONFIG_SYSCTL | ||
1246 | ipv6_static_sysctl_unregister(); | ||
1247 | static_sysctl_fail: | ||
1248 | #endif | ||
1249 | sock_unregister(PF_INET6); | 1240 | sock_unregister(PF_INET6); |
1250 | rtnl_unregister_all(PF_INET6); | 1241 | rtnl_unregister_all(PF_INET6); |
1251 | out_sock_register_fail: | 1242 | out_sock_register_fail: |
@@ -1272,9 +1263,6 @@ static void __exit inet6_exit(void) | |||
1272 | /* Disallow any further netlink messages */ | 1263 | /* Disallow any further netlink messages */ |
1273 | rtnl_unregister_all(PF_INET6); | 1264 | rtnl_unregister_all(PF_INET6); |
1274 | 1265 | ||
1275 | #ifdef CONFIG_SYSCTL | ||
1276 | ipv6_sysctl_unregister(); | ||
1277 | #endif | ||
1278 | udpv6_exit(); | 1266 | udpv6_exit(); |
1279 | udplitev6_exit(); | 1267 | udplitev6_exit(); |
1280 | tcpv6_exit(); | 1268 | tcpv6_exit(); |
@@ -1302,9 +1290,6 @@ static void __exit inet6_exit(void) | |||
1302 | rawv6_exit(); | 1290 | rawv6_exit(); |
1303 | 1291 | ||
1304 | unregister_pernet_subsys(&inet6_net_ops); | 1292 | unregister_pernet_subsys(&inet6_net_ops); |
1305 | #ifdef CONFIG_SYSCTL | ||
1306 | ipv6_static_sysctl_unregister(); | ||
1307 | #endif | ||
1308 | proto_unregister(&rawv6_prot); | 1293 | proto_unregister(&rawv6_prot); |
1309 | proto_unregister(&udplitev6_prot); | 1294 | proto_unregister(&udplitev6_prot); |
1310 | proto_unregister(&udpv6_prot); | 1295 | proto_unregister(&udpv6_prot); |