mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
dmaengine: zynqmp_dma: 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: Baokun Li <libaokun1@huawei.com> Link: https://lore.kernel.org/r/20210609071349.1336853-1-libaokun1@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
df208d63cf
commit
48594dbf79
1 changed files with 1 additions and 2 deletions
|
@ -434,8 +434,7 @@ static void zynqmp_dma_free_descriptor(struct zynqmp_dma_chan *chan,
|
|||
struct zynqmp_dma_desc_sw *child, *next;
|
||||
|
||||
chan->desc_free_cnt++;
|
||||
list_del(&sdesc->node);
|
||||
list_add_tail(&sdesc->node, &chan->free_list);
|
||||
list_move_tail(&sdesc->node, &chan->free_list);
|
||||
list_for_each_entry_safe(child, next, &sdesc->tx_list, node) {
|
||||
chan->desc_free_cnt++;
|
||||
list_move_tail(&child->node, &chan->free_list);
|
||||
|
|
Loading…
Reference in a new issue