summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorj223yang@asset.uwaterloo.ca <j223yang@asset.uwaterloo.ca>2011-03-16 16:16:22 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-17 17:39:00 +0100
commitba3c578de274a5438bafbce03f9225936698051c (patch)
treefd7b7f821334806583d76104995c126485bce5c6 /net/sunrpc
parentSUNRPC: Convert struct rpc_xprt to use atomic_t counters (diff)
downloadlinux-ba3c578de274a5438bafbce03f9225936698051c.tar.xz
linux-ba3c578de274a5438bafbce03f9225936698051c.zip
xprt: remove redundant check
remove redundant check. Signed-off-by: Jinqiu Yang <crindy646@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 4499b5a51763..9494c3767356 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -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);