From patchwork Mon Aug 8 10:15:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxin John X-Patchwork-Id: 1043622 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p78AGBIs020151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Aug 2011 10:16:31 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QqMsF-0007aK-9C; Mon, 08 Aug 2011 10:15:55 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QqMsE-00046d-Pm; Mon, 08 Aug 2011 10:15:54 +0000 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QqMsB-00046K-9c for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2011 10:15:51 +0000 Received: by wyh11 with SMTP id 11so2026439wyh.36 for ; Mon, 08 Aug 2011 03:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=G3W+rOcsNOk+T2BM+0vPqUr0Qt5DhpGTjuXHfePVjZc=; b=FAsNdT/dg8BHfjRXw48XdBmEN1yYLBtXURnlRqSF0HHzutI63XXLeQkKoYl991Fc3E 6+KCnzZrPZrop98chz1poieDDfgDAOHLXRffsV0rBD0AnfHMtJ92HJ+tJ/pmEx5gQbSy dZUCcNGj7ytAL0g9X7sJFvaSwZpLrrxt1u1tQ= Received: by 10.216.133.146 with SMTP id q18mr3442738wei.15.1312798548631; Mon, 08 Aug 2011 03:15:48 -0700 (PDT) Received: from localhost ([192.100.124.156]) by mx.google.com with ESMTPS id fe4sm4373258wbb.62.2011.08.08.03.15.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 03:15:47 -0700 (PDT) Date: Mon, 8 Aug 2011 13:15:46 +0300 From: "Maxin B. John" To: linux-kernel@vger.kernel.org Subject: [PATCH] arch:arm:plat-omap:iovmm: remove unused variable 'va' Message-ID: <20110808101546.GA25572@maxin> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110808_061551_567167_A3842554 X-CRM114-Status: GOOD ( 12.74 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maxin.john[at]gmail.com) 0.6 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [192.100.124.156 listed in dnsbl.sorbs.net] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service Cc: Tony Lindgren , linux-omap@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Aug 2011 10:16:33 +0000 (UTC) The pointer "va" returned from "phys_to_virt(pa)" is never used in "sgtable_fill_kmalloc()".So,it is safe to remove this set-but-unused variable. Signed-off-by: Maxin B. John diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index c60737c..79e7fed 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c @@ -423,9 +423,6 @@ static void sgtable_fill_kmalloc(struct sg_table *sgt, u32 pa, u32 da, { unsigned int i; struct scatterlist *sg; - void *va; - - va = phys_to_virt(pa); for_each_sg(sgt->sgl, sg, sgt->nents, i) { unsigned bytes;