diff options
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 217fb7f34d52..df5997d25826 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -1567,7 +1567,6 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1567 | struct sock_iocb *siocb = kiocb_to_siocb(kiocb); | 1567 | struct sock_iocb *siocb = kiocb_to_siocb(kiocb); |
1568 | struct sock *sk = sock->sk; | 1568 | struct sock *sk = sock->sk; |
1569 | struct sock *other = NULL; | 1569 | struct sock *other = NULL; |
1570 | struct sockaddr_un *sunaddr = msg->msg_name; | ||
1571 | int err, size; | 1570 | int err, size; |
1572 | struct sk_buff *skb; | 1571 | struct sk_buff *skb; |
1573 | int sent = 0; | 1572 | int sent = 0; |
@@ -1590,7 +1589,6 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1590 | err = sk->sk_state == TCP_ESTABLISHED ? -EISCONN : -EOPNOTSUPP; | 1589 | err = sk->sk_state == TCP_ESTABLISHED ? -EISCONN : -EOPNOTSUPP; |
1591 | goto out_err; | 1590 | goto out_err; |
1592 | } else { | 1591 | } else { |
1593 | sunaddr = NULL; | ||
1594 | err = -ENOTCONN; | 1592 | err = -ENOTCONN; |
1595 | other = unix_peer(sk); | 1593 | other = unix_peer(sk); |
1596 | if (!other) | 1594 | if (!other) |