Skip to content

Commit

Permalink
dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail
Browse files Browse the repository at this point in the history
Using list_move_tail() instead of list_del() + list_add_tail().

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
SamuelZOU authored and vinodkoul committed Jun 7, 2021
1 parent 340ad03 commit 2e5c09d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/dma/sun4i-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e5c09d

Please sign in to comment.