Skip to content

Commit

Permalink
arch:arm:plat-omap:iovmm: remove unused variable 'va'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxin John authored and Tony Lindgren committed Aug 10, 2011
1 parent 1d08fd9 commit ae65eb7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/arm/plat-omap/iovmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae65eb7

Please sign in to comment.