summaryrefslogtreecommitdiffstats
path: root/net/rose/sysctl_net_rose.c
diff options
context:
space:
mode:
authorEric W. Biederman2012-04-19 15:44:49 +0200
committerDavid S. Miller2012-04-21 03:22:30 +0200
commitec8f23ce0f4005b74013d4d122e0d540397a93c9 (patch)
treec2f22aa08ad4c0197d3cb41b91cf8d436794fde1 /net/rose/sysctl_net_rose.c
parentnet: Convert nf_conntrack_proto to use register_net_sysctl (diff)
downloadkernel-qcow2-linux-ec8f23ce0f4005b74013d4d122e0d540397a93c9.tar.gz
kernel-qcow2-linux-ec8f23ce0f4005b74013d4d122e0d540397a93c9.tar.xz
kernel-qcow2-linux-ec8f23ce0f4005b74013d4d122e0d540397a93c9.zip
net: Convert all sysctl registrations to register_net_sysctl
This results in code with less boiler plate that is a bit easier to read. Additionally stops us from using compatibility code in the sysctl core, hastening the day when the compatibility code can be removed. 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>
Diffstat (limited to 'net/rose/sysctl_net_rose.c')
-rw-r--r--net/rose/sysctl_net_rose.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/rose/sysctl_net_rose.c b/net/rose/sysctl_net_rose.c
index 02b73979535b..94ca9c2ccd69 100644
--- a/net/rose/sysctl_net_rose.c
+++ b/net/rose/sysctl_net_rose.c
@@ -118,15 +118,9 @@ static ctl_table rose_table[] = {
{ }
};
-static struct ctl_path rose_path[] = {
- { .procname = "net", },
- { .procname = "rose", },
- { }
-};
-
void __init rose_register_sysctl(void)
{
- rose_table_header = register_net_sysctl_table(&init_net, rose_path, rose_table);
+ rose_table_header = register_net_sysctl(&init_net, "net/rose", rose_table);
}
void rose_unregister_sysctl(void)