summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-01-13 11:43:22 +0300
committerDavid S. Miller <davem@davemloft.net>2008-01-29 02:02:02 +0300
commit4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3 (patch)
treea0abe8b0e56f6fa3cd24e5faac7229f73d7266e0 /net/ipv4/fib_trie.c
parent88ebc72f68974965b41ad7e8e441df57a530e386 (diff)
downloadlinux-4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3.tar.xz
[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>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c1
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;