Skip to content

Commit

Permalink
[DECNET]: Use sk_stream_error function rather than DECnet's own
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Steven Whitehouse authored and David S. Miller committed Aug 10, 2005
1 parent 86b3786 commit 001ab02
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions net/decnet/af_decnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1876,15 +1876,6 @@ static inline unsigned int dn_current_mss(struct sock *sk, int flags)
return mss_now;
}

static int dn_error(struct sock *sk, int flags, int err)
{
if (err == -EPIPE)
err = sock_error(sk) ? : -EPIPE;
if (err == -EPIPE && !(flags & MSG_NOSIGNAL))
send_sig(SIGPIPE, current, 0);
return err;
}

static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, size_t size)
{
Expand Down Expand Up @@ -2045,7 +2036,7 @@ static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
return sent ? sent : err;

out_err:
err = dn_error(sk, flags, err);
err = sk_stream_error(sk, flags, err);
release_sock(sk);
return err;
}
Expand Down

0 comments on commit 001ab02

Please sign in to comment.