projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01dba07
)
svcrpc: svc_tcp_sendto XPT_DEAD check is redundant
author
J. Bruce Fields
<bfields@redhat.com>
Sat, 23 Oct 2010 15:55:53 +0000
(11:55 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 25 Oct 2010 21:59:34 +0000
(17:59 -0400)
The only caller (svc_send) has already checked XPT_DEAD.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/svcsock.c
b/net/sunrpc/svcsock.c
index
1454739
..
07919e1
100644
(file)
--- a/
net/sunrpc/svcsock.c
+++ b/
net/sunrpc/svcsock.c
@@
-1135,9
+1135,6
@@
static int svc_tcp_sendto(struct svc_rqst *rqstp)
reclen = htonl(0x80000000|((xbufp->len ) - 4));
memcpy(xbufp->head[0].iov_base, &reclen, 4);
- if (test_bit(XPT_DEAD, &rqstp->rq_xprt->xpt_flags))
- return -ENOTCONN;
-
sent = svc_sendto(rqstp, &rqstp->rq_res);
if (sent != xbufp->len) {
printk(KERN_NOTICE