Commit 8fbcec24 authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller

net: Use IS_ERR_OR_NULL().

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2724680b
...@@ -286,7 +286,7 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, ...@@ -286,7 +286,7 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir,
else else
fle->genid--; fle->genid--;
} else { } else {
if (flo && !IS_ERR(flo)) if (!IS_ERR_OR_NULL(flo))
flo->ops->delete(flo); flo->ops->delete(flo);
} }
ret_object: ret_object:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment