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 <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/1623036035-30614-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
Zou Wei 2021-06-07 11:20:35 +08:00 коммит произвёл Vinod Koul
Родитель 340ad03188
Коммит 2e5c09d19e
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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: