Thread (98 messages) read the whole thread 98 messages, 2 authors, 2011-05-08

[v2 096/115] sysctl: net/ipv6/neigh: create empty dir with register_sysctl_dir

From: Lucian Adrian Grijincu <hidden>
Date: 2011-05-08 22:43:28
Also in: lkml
Subsystem: networking [general], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Signed-off-by: Lucian Adrian Grijincu <redacted>
---
 net/ipv6/sysctl_net_ipv6.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c
index 1d2d8c7..bb57ab4 100644
--- a/net/ipv6/sysctl_net_ipv6.c
+++ b/net/ipv6/sysctl_net_ipv6.c
@@ -15,8 +15,6 @@
 #include <net/addrconf.h>
 #include <net/inet_frag.h>
 
-static struct ctl_table empty[1];
-
 static ctl_table ipv6_bindv6only_template[] = {
 	{
 		.procname	= "bindv6only",
@@ -173,7 +171,7 @@ static struct ctl_table_header *ip6_base;
 
 int ipv6_static_sysctl_register(void)
 {
-	ip6_base = register_sysctl_paths(net_ipv6_neigh_path, empty);
+	ip6_base = register_sysctl_dir(net_ipv6_neigh_path);
 	if (ip6_base == NULL)
 		return -ENOMEM;
 	return 0;
-- 
1.7.5.134.g1c08b
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help