From patchwork Wed Mar 16 15:16:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: j223yang@asset.uwaterloo.ca X-Patchwork-Id: 639391 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2GFGVBj002791 for ; Wed, 16 Mar 2011 15:16:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002Ab1CPPQ3 (ORCPT ); Wed, 16 Mar 2011 11:16:29 -0400 Received: from asset.uwaterloo.ca ([129.97.92.29]:43439 "EHLO asset.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752826Ab1CPPQ3 (ORCPT ); Wed, 16 Mar 2011 11:16:29 -0400 Received: from asset.uwaterloo.ca (localhost.localdomain [127.0.0.1]) by asset.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id p2GFGNit002937; Wed, 16 Mar 2011 11:16:23 -0400 Received: (from j223yang@localhost) by asset.uwaterloo.ca (8.14.4/8.14.4/Submit) id p2GFGM6E002935; Wed, 16 Mar 2011 11:16:22 -0400 Date: Wed, 16 Mar 2011 11:16:22 -0400 From: j223yang@asset.uwaterloo.ca To: trond.myklebust@fys.uio.no Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [patch]xprt: remove redundant check Message-ID: <20110316151622.GA2932@asset.uwaterloo.ca> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Mar 2011 15:16:31 +0000 (UTC) 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);