xprt: remove redundant check
authorj223yang@asset.uwaterloo.ca <j223yang@asset.uwaterloo.ca>
Wed, 16 Mar 2011 15:16:22 +0000 (11:16 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 17 Mar 2011 16:39:00 +0000 (12:39 -0400)
remove redundant check.

Signed-off-by: Jinqiu Yang <crindy646@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c

index 4499b5a51763dc6982ded94aab150136d7f896ca..9494c376735618c0f67fb3b9a0f88c70875062a4 100644 (file)
@@ -212,7 +212,7 @@ out_sleep:
                        task->tk_pid, xprt);
        task->tk_timeout = 0;
        task->tk_status = -EAGAIN;
-       if (req && req->rq_ntrans)
+       if (req->rq_ntrans)
                rpc_sleep_on(&xprt->resend, task, NULL);
        else
                rpc_sleep_on(&xprt->sending, task, NULL);