aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-23 11:55:53 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-25 17:59:34 -0400
commit42d7ba3d6d56a6cbc773284896108b1e2ebcee81 (patch)
tree3d0d908c39ae228e4b51c3bec8d5bd5188397637 /net/sunrpc/svcsock.c
parent01dba075d571f5a8b7dcb153fdfd14e981c4cee3 (diff)
svcrpc: svc_tcp_sendto XPT_DEAD check is redundant
The only caller (svc_send) has already checked XPT_DEAD. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r--net/sunrpc/svcsock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 1454739b4233..07919e16be3e 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1135,9 +1135,6 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp)
1135 reclen = htonl(0x80000000|((xbufp->len ) - 4)); 1135 reclen = htonl(0x80000000|((xbufp->len ) - 4));
1136 memcpy(xbufp->head[0].iov_base, &reclen, 4); 1136 memcpy(xbufp->head[0].iov_base, &reclen, 4);
1137 1137
1138 if (test_bit(XPT_DEAD, &rqstp->rq_xprt->xpt_flags))
1139 return -ENOTCONN;
1140
1141 sent = svc_sendto(rqstp, &rqstp->rq_res); 1138 sent = svc_sendto(rqstp, &rqstp->rq_res);
1142 if (sent != xbufp->len) { 1139 if (sent != xbufp->len) {
1143 printk(KERN_NOTICE 1140 printk(KERN_NOTICE