lkml.org 
[lkml]   [2011]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/32] dma40: remove unnecessary casts
    Date
    From: Rabin Vincent <rabin.vincent@stericsson.com>

    Acked-by: Per Forlin <per.forlin@stericsson.com>
    Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com>
    Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
    Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
    ---
    drivers/dma/ste_dma40.c | 6 ++----
    1 files changed, 2 insertions(+), 4 deletions(-)

    diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
    index b585686..bd72269 100644
    --- a/drivers/dma/ste_dma40.c
    +++ b/drivers/dma/ste_dma40.c
    @@ -357,14 +357,12 @@ static int d40_pool_lli_alloc(struct d40_chan *d40c, struct d40_desc *d40d,
    }

    if (is_log) {
    - d40d->lli_log.src = PTR_ALIGN((struct d40_log_lli *) base,
    - align);
    + d40d->lli_log.src = PTR_ALIGN(base, align);
    d40d->lli_log.dst = d40d->lli_log.src + lli_len;

    d40d->lli_pool.dma_addr = 0;
    } else {
    - d40d->lli_phy.src = PTR_ALIGN((struct d40_phy_lli *)base,
    - align);
    + d40d->lli_phy.src = PTR_ALIGN(base, align);
    d40d->lli_phy.dst = d40d->lli_phy.src + lli_len;

    d40d->lli_pool.dma_addr = dma_map_single(d40c->base->dev,
    --
    1.7.3.2


    \
     
     \ /
      Last update: 2011-01-25 11:35    [W:0.025 / U:29.492 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site