Skip to content

Commit

Permalink
net core: Remove unneded creation of an empty net/core sysctl directory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Apr 21, 2012
1 parent 5dd3df1 commit 45bad91
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/core/sysctl_net_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 45bad91

Please sign in to comment.