mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08: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
@ -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 New Issue
Block a user