projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d08fd9
)
arch:arm:plat-omap:iovmm: remove unused variable 'va'
author
Maxin John
<maxin.john@gmail.com>
Mon, 8 Aug 2011 10:15:46 +0000
(10:15 +0000)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 10 Aug 2011 11:17:16 +0000
(
04:17
-0700)
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>
arch/arm/plat-omap/iovmm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-omap/iovmm.c
b/arch/arm/plat-omap/iovmm.c
index c60737c49a32fae14b445ce938c59975998d7ae4..79e7fedb8602ae1a50bd704921ad432a878f9765 100644
(file)
--- 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;