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:
YOSHIFUJI Hideaki / 吉藤英明 2013-01-22 06:32:44 +00:00 committed by David S. Miller
parent 2724680bce
commit 8fbcec241d

View File

@ -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: