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: 1043612 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p78AG765020179 for ; Mon, 8 Aug 2011 10:16:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982Ab1HHKPu (ORCPT ); Mon, 8 Aug 2011 06:15:50 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:35155 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505Ab1HHKPu (ORCPT ); Mon, 8 Aug 2011 06:15:50 -0400 Received: by wwf5 with SMTP id 5so1446411wwf.1 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 Cc: Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.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) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Mon, 08 Aug 2011 10:16:08 +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 --- -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;