Skip to content

Commit

Permalink
net: Use IS_ERR_OR_NULL().
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Jan 22, 2013
1 parent 2724680 commit 8fbcec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fbcec2

Please sign in to comment.