提交 4dde4610 编写于 作者: E Eric Dumazet 提交者: David S. Miller

[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: NEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 88ebc72f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册