projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28d5d5
)
dmaengine: xilinx_dma: Use list_move_tail instead of list_del/list_add_tail
author
Baokun Li
<libaokun1@huawei.com>
Tue, 8 Jun 2021 03:09:05 +0000
(11:09 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 28 Jul 2021 06:35:06 +0000
(12:05 +0530)
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>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link:
https://lore.kernel.org/r/20210608030905.2818831-1-libaokun1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/xilinx/xilinx_dma.c
b/drivers/dma/xilinx/xilinx_dma.c
index 4b9530a7bf6529fe8454fb02db19c089bbfa6f4c..213e1a7314b77bcb7af94da3caa16f23116769c4 100644
(file)
--- a/
drivers/dma/xilinx/xilinx_dma.c
+++ b/
drivers/dma/xilinx/xilinx_dma.c
@@
-1420,8
+1420,7
@@
static void xilinx_vdma_start_transfer(struct xilinx_dma_chan *chan)
chan->desc_submitcount++;
chan->desc_pendingcount--;
- list_del(&desc->node);
- list_add_tail(&desc->node, &chan->active_list);
+ list_move_tail(&desc->node, &chan->active_list);
if (chan->desc_submitcount == chan->num_frms)
chan->desc_submitcount = 0;