Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f358c289 authored by Wei Yongjun's avatar Wei Yongjun Committed by Vinod Koul
Browse files

dma: mmp_pdma: use list_move instead of list_del/list_add



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

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent f97b98d6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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