summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMaxin John <maxin.john@gmail.com>2011-08-08 10:15:46 +0000
committerTony Lindgren <tony@atomide.com>2011-08-10 04:17:16 -0700
commitae65eb729dd3d3309fb3b7a1badc7b67cada2357 (patch)
tree79bb2d0eab3e90d64043dee805549f5b165f5faf /arch/arm
parent1d08fd9f6a7f2541a7b28a21fc638c4640d9cabb (diff)
downloadop-kernel-dev-ae65eb729dd3d3309fb3b7a1badc7b67cada2357.zip
op-kernel-dev-ae65eb729dd3d3309fb3b7a1badc7b67cada2357.tar.gz
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 <maxin.john@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/iovmm.c3
1 files changed, 0 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud