summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2008-01-13 00:43:22 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:02:02 -0800
commit4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3 (patch)
treea0abe8b0e56f6fa3cd24e5faac7229f73d7266e0 /net/ipv4
parent88ebc72f68974965b41ad7e8e441df57a530e386 (diff)
downloadop-kernel-dev-4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3.zip
op-kernel-dev-4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3.tar.gz
[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')
-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 350904c..da6681d 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;
OpenPOWER on IntegriCloud