[IPV4] fib_trie: removes a memset() call in tnode_new()
authorEric Dumazet <dada1@cosmosbay.com>
Sun, 13 Jan 2008 08:43:22 +0000 (00:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:02 +0000 (15:02 -0800)
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>
net/ipv4/fib_trie.c

index 350904c233ee343b5375decd6d8b67d898daa996..da6681ddc509882e184128f266e6c53ec416dac7 100644 (file)
@@ -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;