projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b3786
)
[DECNET]: Use sk_stream_error function rather than DECnet's own
author
Steven Whitehouse
<steve@chygwyn.com>
Wed, 10 Aug 2005 18:32:57 +0000
(11:32 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Aug 2005 18:32:57 +0000
(11:32 -0700)
Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/af_decnet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/decnet/af_decnet.c
b/net/decnet/af_decnet.c
index 96a02800cd283648e7d92d24c05e863ac4706353..acdd18e6adb2172903a2e6519e331c5489646330 100644
(file)
--- a/
net/decnet/af_decnet.c
+++ b/
net/decnet/af_decnet.c
@@
-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)
{
@@
-2045,7
+2036,7
@@
out:
return sent ? sent : err;
out_err:
- err =
dn
_error(sk, flags, err);
+ err =
sk_stream
_error(sk, flags, err);
release_sock(sk);
return err;
}