From: Eric Dumazet Date: Sun, 13 Jan 2008 08:43:22 +0000 (-0800) Subject: [IPV4] fib_trie: removes a memset() call in tnode_new() X-Git-Tag: v2.6.25-rc1~1162^2~760 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 350904c233..da6681ddc5 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;