From: Stephen Hemminger Date: Thu, 24 Jan 2008 04:38:24 +0000 (-0800) Subject: [IPV4] fib_trie: remove unneeded NULL check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac97f75faae2a18648145bc6bbcdd326bac6a1c2;p=linux-beck.git [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index b8d11492ef17..f2f47033f31f 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);