Skip to content

Commit

Permalink
svcrpc: svc_tcp_sendto XPT_DEAD check is redundant
Browse files Browse the repository at this point in the history
The only caller (svc_send) has already checked XPT_DEAD.

Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
J. Bruce Fields committed Oct 25, 2010
1 parent 01dba07 commit 42d7ba3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/sunrpc/svcsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42d7ba3

Please sign in to comment.