Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ac97f75faae2a18648145bc6bbcdd326bac6a1c2
Commit:     ac97f75faae2a18648145bc6bbcdd326bac6a1c2
Parent:     f638a2f0579f74dc93d7da4299146e2822c06889
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 23 20:38:24 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:11:26 2008 -0800

    [IPV4] fib_trie: remove unneeded NULL check
    
    Since fib_route_seq_show now uses hlist_for_each_entry(), the leaf
    info can not be NULL.
    
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/fib_trie.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index b8d1149..f2f4703 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2477,9 +2477,6 @@ static int fib_route_seq_show(struct seq_file *seq, void 
*v)
                struct fib_alias *fa;
                __be32 mask, prefix;
 
-               if (!li)
-                       continue;
-
                mask = inet_make_mask(li->plen);
                prefix = htonl(l->key);
 
-
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