aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-01-13 03:43:22 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:02 -0500
commit4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3 (patch)
treea0abe8b0e56f6fa3cd24e5faac7229f73d7266e0 /net/ipv4/fib_trie.c
parent88ebc72f68974965b41ad7e8e441df57a530e386 (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>
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)
391 struct tnode *tn = tnode_alloc(sz); 391 struct tnode *tn = tnode_alloc(sz);
392 392
393 if (tn) { 393 if (tn) {
394 memset(tn, 0, sz);
395 tn->parent = T_TNODE; 394 tn->parent = T_TNODE;
396 tn->pos = pos; 395 tn->pos = pos;
397 tn->bits = bits; 396 tn->bits = bits;