linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch]xprt: remove redundant check
@ 2011-03-16 15:16 j223yang
  0 siblings, 0 replies; only message in thread
From: j223yang @ 2011-03-16 15:16 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, linux-kernel

remove redundant check, second hunk.

Signed-off-by: Jinqiu Yang <crindy646@gmail.com>
---
 xprt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt
--- a/net/sunrpc/xprt.c	2011-03-16 11:06:58.460039603 -0400
+++ b/net/sunrpc/xprt.c	2011-03-16 11:07:49.835164663 -0400
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-16 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16 15:16 [patch]xprt: remove redundant check j223yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).