Commit 40d44446 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

unix: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment