From: j223yang@asset.uwaterloo.ca Date: Wed, 16 Mar 2011 15:16:22 +0000 (-0400) Subject: xprt: remove redundant check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba3c578de274a5438bafbce03f9225936698051c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git xprt: remove redundant check remove redundant check. Signed-off-by: Jinqiu Yang Signed-off-by: Trond Myklebust --- 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);