From: Zou Wei Date: Mon, 7 Jun 2021 03:20:35 +0000 (+0800) Subject: dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail X-Git-Tag: accepted/tizen/unified/20230118.172025~6894^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e5c09d19e63726a88ccd7a71256fec8a716551e;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail Using list_move_tail() instead of list_del() + list_add_tail(). Reported-by: Hulk Robot Signed-off-by: Zou Wei Acked-by: Maxime Ripard Link: https://lore.kernel.org/r/1623036035-30614-1-git-send-email-zou_wei@huawei.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c index e8b6633..93f1645 100644 --- a/drivers/dma/sun4i-dma.c +++ b/drivers/dma/sun4i-dma.c @@ -1042,9 +1042,8 @@ handle_pending: * 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: