diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-01-23 23:38:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:26 -0500 |
commit | ac97f75faae2a18648145bc6bbcdd326bac6a1c2 (patch) | |
tree | 04386b71dbfbaaee5e764b4fdf859330c03c8ae1 /net/ipv4/fib_trie.c | |
parent | f638a2f0579f74dc93d7da4299146e2822c06889 (diff) |
[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 <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | 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 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) | |||
2477 | struct fib_alias *fa; | 2477 | struct fib_alias *fa; |
2478 | __be32 mask, prefix; | 2478 | __be32 mask, prefix; |
2479 | 2479 | ||
2480 | if (!li) | ||
2481 | continue; | ||
2482 | |||
2483 | mask = inet_make_mask(li->plen); | 2480 | mask = inet_make_mask(li->plen); |
2484 | prefix = htonl(l->key); | 2481 | prefix = htonl(l->key); |
2485 | 2482 | ||