Thread (98 messages) 98 messages, 2 authors, 2011-05-08

[v2 095/115] sysctl: net/ipv4/neigh: create empty dir with register_sysctl_dir

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

Signed-off-by: Lucian Adrian Grijincu <redacted>
---
 net/ipv4/route.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 46c7b3d..092f3d1 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -3151,8 +3151,6 @@ static ctl_table ipv4_route_table[] = {
 	{ }
 };
 
-static struct ctl_table empty[1];
-
 static __net_initdata struct ctl_path ipv4_neigh_path[] = {
 	{ .procname = "net", },
 	{ .procname = "ipv4", },
@@ -3310,6 +3308,6 @@ int __init ip_rt_init(void)
 void __init ip_static_sysctl_init(void)
 {
 	register_sysctl_paths(ipv4_route_path, ipv4_route_table);
-	register_sysctl_paths(ipv4_neigh_path, empty);
+	register_sysctl_dir(ipv4_neigh_path);
 }
 #endif
-- 
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