Skip to content

Commit

Permalink
[IPV4] fib_trie: remove unneeded NULL check
Browse files Browse the repository at this point in the history
Since fib_route_seq_show now uses hlist_for_each_entry(), the leaf
info can not be NULL.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 28, 2008
1 parent f638a2f commit ac97f75
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ac97f75

Please sign in to comment.