diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-13 00:43:22 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:02:02 -0800 |
commit | 4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3 (patch) | |
tree | a0abe8b0e56f6fa3cd24e5faac7229f73d7266e0 | |
parent | 88ebc72f68974965b41ad7e8e441df57a530e386 (diff) |
[IPV4] fib_trie: removes a memset() call in tnode_new()
tnode_alloc() already clears allocated memory, using kcalloc() or
alloc_pages(GFP_KERNEL|__GFP_ZERO, ...)
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/fib_trie.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 350904c233ee..da6681ddc509 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -391,7 +391,6 @@ static struct tnode* tnode_new(t_key key, int pos, int bits) struct tnode *tn = tnode_alloc(sz); if (tn) { - memset(tn, 0, sz); tn->parent = T_TNODE; tn->pos = pos; tn->bits = bits; |