net: Remove the now superfluous sentinel elements from ctl_table array
[linux-2.6-block.git] / net / ieee802154 / 6lowpan / reassembly.c
index 2a983cf450daf1b7b83c63ea02657f8904d5b31b..56ef873828f40e9d4681d67f6a7b67b5c11b6e95 100644 (file)
@@ -338,7 +338,6 @@ static struct ctl_table lowpan_frags_ns_ctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec_jiffies,
        },
-       { }
 };
 
 /* secret interval has been deprecated */
@@ -351,7 +350,6 @@ static struct ctl_table lowpan_frags_ctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec_jiffies,
        },
-       { }
 };
 
 static int __net_init lowpan_frags_ns_sysctl_register(struct net *net)
@@ -370,10 +368,8 @@ static int __net_init lowpan_frags_ns_sysctl_register(struct net *net)
                        goto err_alloc;
 
                /* Don't export sysctls to unprivileged users */
-               if (net->user_ns != &init_user_ns) {
-                       table[0].procname = NULL;
+               if (net->user_ns != &init_user_ns)
                        table_size = 0;
-               }
        }
 
        table[0].data   = &ieee802154_lowpan->fqdir->high_thresh;