From ba3c578de274a5438bafbce03f9225936698051c Mon Sep 17 00:00:00 2001 From: "j223yang@asset.uwaterloo.ca" Date: Wed, 16 Mar 2011 11:16:22 -0400 Subject: [PATCH] xprt: remove redundant check remove redundant check. Signed-off-by: Jinqiu Yang Signed-off-by: Trond Myklebust --- net/sunrpc/xprt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5