Skip to contentSkip to conversation

dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail

PATCH Applied Zou Wei 3 participants 3 messages Jun 7, 2021

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

---
 drivers/dma/sun4i-dma.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/dma/sun4i-dma.c +2 -3
index e8b6633..93f1645 100644
@@ -1042,9 +1042,8 @@ static irqreturn_t sun4i_dma_interrupt(int irq, void *dev_id)
 			 * Move the promise into the completed list now that
 			 * we're done with it
 			 */
-			list_del(&vchan->processing->list);
-			list_add_tail(&vchan->processing->list,
-				      &contract->completed_demands);
+			list_move_tail(&vchan->processing->list,
+				       &contract->completed_demands);
 
 			/*
 			 * Cyclic DMA transfers are special:
Signature · 1 line
2.6.2
maintainer Applied
#2 lore raw
In reply to Zou Wei
Quoted 1 line · Zou Wei

Using list_move_tail() instead of list_del() + list_add_tail().

Applied, thanks

Signature · 1 line
~Vinod