diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-09-23 02:07:20 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-10-06 22:11:39 -0400 |
commit | f358c289eec6dc3953706363e4515c800cec1d13 (patch) | |
tree | 92380aa024ba9e93429d99ec4316ab14f28c74f2 /drivers/dma/mmp_pdma.c | |
parent | f97b98d6d02eea5301f86422ace06e5b53979a0c (diff) |
dma: mmp_pdma: use list_move instead of list_del/list_add
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mmp_pdma.c')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ff8d7827f8cb..558994f38822 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) | |||
798 | * move the descriptors to a temporary list so we can drop | 798 | * move the descriptors to a temporary list so we can drop |
799 | * the lock during the entire cleanup operation | 799 | * the lock during the entire cleanup operation |
800 | */ | 800 | */ |
801 | list_del(&desc->node); | 801 | list_move(&desc->node, &chain_cleanup); |
802 | list_add(&desc->node, &chain_cleanup); | ||
803 | 802 | ||
804 | /* | 803 | /* |
805 | * Look for the first list entry which has the ENDIRQEN flag | 804 | * Look for the first list entry which has the ENDIRQEN flag |