lkml.org 
[lkml]   [2013]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH -next] dma: mmp_pdma: use list_move instead of list_del/list_add
    From
    From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

    Using list_move() instead of list_del() + list_add().

    Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
    ---
    drivers/dma/mmp_pdma.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c
    index ff8d7827..558994f 100644
    --- a/drivers/dma/mmp_pdma.c
    +++ b/drivers/dma/mmp_pdma.c
    @@ -798,8 +798,7 @@ static void dma_do_tasklet(unsigned long data)
    * move the descriptors to a temporary list so we can drop
    * the lock during the entire cleanup operation
    */
    - list_del(&desc->node);
    - list_add(&desc->node, &chain_cleanup);
    + list_move(&desc->node, &chain_cleanup);

    /*
    * Look for the first list entry which has the ENDIRQEN flag


    \
     
     \ /
      Last update: 2013-09-23 08:21    [W:3.935 / U:0.780 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site