mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-02 18:32:10 +07:00
unix: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
86dc1ad2be
commit
40d44446cf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user