提交 40d44446 编写于 作者: W Wei Yongjun 提交者: David S. Miller

unix: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().
Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 86dc1ad2
......@@ -1178,8 +1178,7 @@ static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr,
unix_state_unlock(other);
out:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
if (newsk)
unix_release_sock(newsk, 0);
if (other)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册