提交 f358c289 编写于 作者: W Wei Yongjun 提交者: Vinod Koul

dma: mmp_pdma: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 f97b98d6
...@@ -798,8 +798,7 @@ static void dma_do_tasklet(unsigned long data) ...@@ -798,8 +798,7 @@ static void dma_do_tasklet(unsigned long data)
* move the descriptors to a temporary list so we can drop * move the descriptors to a temporary list so we can drop
* the lock during the entire cleanup operation * the lock during the entire cleanup operation
*/ */
list_del(&desc->node); list_move(&desc->node, &chain_cleanup);
list_add(&desc->node, &chain_cleanup);
/* /*
* Look for the first list entry which has the ENDIRQEN flag * Look for the first list entry which has the ENDIRQEN flag
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册