forked from luck/tmp_suning_uos_patched
net: Use IS_ERR_OR_NULL().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2724680bce
commit
8fbcec241d
|
@ -286,7 +286,7 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir,
|
|||
else
|
||||
fle->genid--;
|
||||
} else {
|
||||
if (flo && !IS_ERR(flo))
|
||||
if (!IS_ERR_OR_NULL(flo))
|
||||
flo->ops->delete(flo);
|
||||
}
|
||||
ret_object:
|
||||
|
|
Loading…
Reference in New Issue
Block a user