lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110316151622.GA2932@asset.uwaterloo.ca>
Date:	Wed, 16 Mar 2011 11:16:22 -0400
From:	j223yang@...et.uwaterloo.ca
To:	trond.myklebust@....uio.no
Cc:	linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [patch]xprt: remove redundant check 

remove redundant check, second hunk.

Signed-off-by: Jinqiu Yang <crindy646@...il.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ