Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3
Commit:     4dde4610c4ab54e9d36a4afaa98c23b017f7f9e3
Parent:     88ebc72f68974965b41ad7e8e441df57a530e386
Author:     Eric Dumazet <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 13 00:43:22 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:02:02 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/fib_trie.c |    1 -
 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to