arch:arm:plat-omap:iovmm: remove unused variable 'va'
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
arch/arm/plat-omap/iovmm.c +0 -3
@@ -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;
ping.
Quoted 20 lines · Maxin B. John
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 <[email protected]>---
arch/arm/plat-omap/iovmm.c +0
-3@@ -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;
Quoted 1 line · Maxin B John
ping.
Sorry I've been on vacation, applying to fixes.
Regards,
Tony
Quoted 21 lines · Maxin B. John
Quoted 20 lines
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 <[email protected]>---
arch/arm/plat-omap/iovmm.c +0
-3@@ -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;