projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
340ad03
)
dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail
author
Zou Wei
<zou_wei@huawei.com>
Mon, 7 Jun 2021 03:20:35 +0000
(11:20 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 7 Jun 2021 11:36:38 +0000
(17:06 +0530)
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>
drivers/dma/sun4i-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/sun4i-dma.c
b/drivers/dma/sun4i-dma.c
index e8b6633ae6612fb3c2734b2fff92009e8172bea1..93f1645ae928992fa7183622f756dbb828f19877 100644
(file)
--- 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: