diff options
-rw-r--r-- | net/ipv4/fib_trie.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index aa9deb708dcf..0179d245c81f 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -876,19 +876,6 @@ nomem: | |||
876 | } | 876 | } |
877 | } | 877 | } |
878 | 878 | ||
879 | static void trie_init(struct trie *t) | ||
880 | { | ||
881 | if (!t) | ||
882 | return; | ||
883 | |||
884 | t->size = 0; | ||
885 | rcu_assign_pointer(t->trie, NULL); | ||
886 | t->revision = 0; | ||
887 | #ifdef CONFIG_IP_FIB_TRIE_STATS | ||
888 | memset(&t->stats, 0, sizeof(struct trie_use_stats)); | ||
889 | #endif | ||
890 | } | ||
891 | |||
892 | /* readside must use rcu_read_lock currently dump routines | 879 | /* readside must use rcu_read_lock currently dump routines |
893 | via get_fa_head and dump */ | 880 | via get_fa_head and dump */ |
894 | 881 | ||
@@ -1980,11 +1967,9 @@ struct fib_table *fib_hash_init(u32 id) | |||
1980 | tb->tb_flush = fn_trie_flush; | 1967 | tb->tb_flush = fn_trie_flush; |
1981 | tb->tb_select_default = fn_trie_select_default; | 1968 | tb->tb_select_default = fn_trie_select_default; |
1982 | tb->tb_dump = fn_trie_dump; | 1969 | tb->tb_dump = fn_trie_dump; |
1983 | memset(tb->tb_data, 0, sizeof(struct trie)); | ||
1984 | 1970 | ||
1985 | t = (struct trie *) tb->tb_data; | 1971 | t = (struct trie *) tb->tb_data; |
1986 | 1972 | memset(t, 0, sizeof(*t)); | |
1987 | trie_init(t); | ||
1988 | 1973 | ||
1989 | if (id == RT_TABLE_LOCAL) | 1974 | if (id == RT_TABLE_LOCAL) |
1990 | printk(KERN_INFO "IPv4 FIB: Using LC-trie version %s\n", VERSION); | 1975 | printk(KERN_INFO "IPv4 FIB: Using LC-trie version %s\n", VERSION); |