提交 8fbcec24 编写于 作者: Y YOSHIFUJI Hideaki / 吉藤英明 提交者: David S. Miller

net: Use IS_ERR_OR_NULL().

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2724680b
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册