diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2011-03-04 12:45:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-08 00:51:14 +0100 |
commit | 6118e35a7126c1062b1a0f6737b84b4fe4d5c8d4 (patch) | |
tree | 412fe3b867969dd29b7ed5369aab046aa7f79dec /net/unix | |
parent | sctp: several declared/set but unused fixes (diff) | |
download | linux-6118e35a7126c1062b1a0f6737b84b4fe4d5c8d4.tar.xz linux-6118e35a7126c1062b1a0f6737b84b4fe4d5c8d4.zip |
af_unix: remove unused struct sockaddr_un cruft
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
-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, struct sock_iocb *siocb = kiocb_to_siocb(kiocb); struct sock *sk = sock->sk; struct sock *other = NULL; - struct sockaddr_un *sunaddr = msg->msg_name; int err, size; struct sk_buff *skb; int sent = 0; @@ -1590,7 +1589,6 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, err = sk->sk_state == TCP_ESTABLISHED ? -EISCONN : -EOPNOTSUPP; goto out_err; } else { - sunaddr = NULL; err = -ENOTCONN; other = unix_peer(sk); if (!other) |