diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-05 01:42:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:56:29 -0800 |
commit | 08913681e484f3f0db949dd0809012e089846216 (patch) | |
tree | 5fd37f75f1de49d21fb49bb4e51f2bd4f1dcf849 | |
parent | 36f0bebd9865dc7e327777fca34b75e65cbfd1a6 (diff) | |
download | linux-08913681e484f3f0db949dd0809012e089846216.tar.gz linux-08913681e484f3f0db949dd0809012e089846216.tar.bz2 linux-08913681e484f3f0db949dd0809012e089846216.zip |
[NET]: Remove the empty net_table
I have removed all the entries from this table (core_table,
ipv4_table and tr_table), so now we can safely drop it.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/net.h | 1 | ||||
-rw-r--r-- | kernel/sysctl.c | 8 | ||||
-rw-r--r-- | net/sysctl_net.c | 4 |
3 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index f95f12c5840c..c414d90e647b 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -337,7 +337,6 @@ static const struct proto_ops name##_ops = { \ #ifdef CONFIG_SYSCTL #include <linux/sysctl.h> -extern ctl_table net_table[]; extern int net_msg_cost; extern int net_msg_burst; #endif diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 45e76f209dcb..4bc8e48434a7 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -200,14 +200,6 @@ static struct ctl_table root_table[] = { .mode = 0555, .child = vm_table, }, -#ifdef CONFIG_NET - { - .ctl_name = CTL_NET, - .procname = "net", - .mode = 0555, - .child = net_table, - }, -#endif { .ctl_name = CTL_FS, .procname = "fs", diff --git a/net/sysctl_net.c b/net/sysctl_net.c index 16ad14b5d572..665e856675a4 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c @@ -30,10 +30,6 @@ #include <linux/if_tr.h> #endif -struct ctl_table net_table[] = { - { 0 }, -}; - static struct list_head * net_ctl_header_lookup(struct ctl_table_root *root, struct nsproxy *namespaces) { |