net: Convert all sysctl registrations to register_net_sysctl
[deliverable/linux.git] / net / netfilter / nf_log.c
index 04fca48d901aa27f407ef18eaa0c04645cee93ba..703fb26aa48d288fa3de60a79f58b43b56c43f78 100644 (file)
@@ -214,13 +214,6 @@ static const struct file_operations nflog_file_ops = {
 #endif /* PROC_FS */
 
 #ifdef CONFIG_SYSCTL
-static struct ctl_path nf_log_sysctl_path[] = {
-       { .procname = "net", },
-       { .procname = "netfilter", },
-       { .procname = "nf_log", },
-       { }
-};
-
 static char nf_log_sysctl_fnames[NFPROTO_NUMPROTO-NFPROTO_UNSPEC][3];
 static struct ctl_table nf_log_sysctl_table[NFPROTO_NUMPROTO+1];
 static struct ctl_table_header *nf_log_dir_header;
@@ -283,7 +276,7 @@ static __init int netfilter_log_sysctl_init(void)
                nf_log_sysctl_table[i].extra1 = (void *)(unsigned long) i;
        }
 
-       nf_log_dir_header = register_net_sysctl_table(&init_net, nf_log_sysctl_path,
+       nf_log_dir_header = register_net_sysctl(&init_net, "net/netfilter/nf_log",
                                       nf_log_sysctl_table);
        if (!nf_log_dir_header)
                return -ENOMEM;
This page took 0.023625 seconds and 5 git commands to generate.