summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-04-19 13:25:13 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-20 21:21:18 -0400
commit45bad914987ed526d468247e0a5f5f7acb2066a1 (patch)
tree981bc0305704ef0376d8bea35d55eb415732b1eb
parent5dd3df105b9f6cb7dd2472b59e028d0d1c878ecb (diff)
downloadlinux-3.10-45bad914987ed526d468247e0a5f5f7acb2066a1.tar.gz
linux-3.10-45bad914987ed526d468247e0a5f5f7acb2066a1.tar.bz2
linux-3.10-45bad914987ed526d468247e0a5f5f7acb2066a1.zip
net core: Remove unneded creation of an empty net/core sysctl directory
On the next line we register the net_core_table in net/core which creates the directory and ensures it exists. 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>
-rw-r--r--net/core/sysctl_net_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index 7d3772e0d15..9fc2f9d666a 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -255,9 +255,6 @@ static __net_initdata struct pernet_operations sysctl_core_ops = {
static __init int sysctl_core_init(void)
{
- static struct ctl_table empty[1];
-
- kmemleak_not_leak(register_net_sysctl_table(&init_net, net_core_path, empty));
register_net_sysctl(&init_net, "net/core", net_core_table);
return register_pernet_subsys(&sysctl_core_ops);
}