mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 05:10:51 +07:00
[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>
This commit is contained in:
parent
f638a2f057
commit
ac97f75faa
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user