From: Eric W. Biederman Date: Thu, 19 Apr 2012 13:25:13 +0000 (+0000) Subject: net core: Remove unneded creation of an empty net/core sysctl directory X-Git-Tag: next-20120430~54^2~120 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=45bad914987ed526d468247e0a5f5f7acb2066a1;p=karo-tx-linux.git 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 Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller --- diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 7d3772e0d150..9fc2f9d666a9 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); }