diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 856274d7e85c21eb6b89feff50ff767986b344e2..8bdcdbe07b98f9de382ab182a5f2d2746825cfc9 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -202,10 +202,9 @@ int xprt_reserve_xprt(struct rpc_task *task) goto out_sleep; } xprt->snd_task = task; - if (req) { - req->rq_bytes_sent = 0; - req->rq_ntrans++; - } + req->rq_bytes_sent = 0; + req->rq_ntrans++; + return 1; out_sleep: