From: Maxin John Date: Mon, 8 Aug 2011 10:15:46 +0000 (+0000) Subject: arch:arm:plat-omap:iovmm: remove unused variable 'va' X-Git-Tag: v3.1-rc2~18^2^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae65eb729dd3d3309fb3b7a1badc7b67cada2357;p=karo-tx-linux.git arch:arm:plat-omap:iovmm: remove unused variable 'va' 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index c60737c49a32..79e7fedb8602 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;