lkml.org 
[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] 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>
    ---
    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;

    \
     
     \ /
      Last update: 2011-08-08 12:19    [W:0.018 / U:29.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site