dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] dmaengine: xilinx_dma: Use list_move_tail instead of list_del/list_add_tail
@ 2021-06-08  3:09 Baokun Li
  2021-06-08 13:16 ` Radhey Shyam Pandey
  2021-07-28  6:35 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Baokun Li @ 2021-06-08  3:09 UTC (permalink / raw)
  To: linux-kernel, Vinod Koul, Michal Simek, Radhey Shyam Pandey,
	Shravya Kumbham, Matthew Murrian, Romain Perier,
	Lars-Peter Clausen, Krzysztof Kozlowski, Allen Pais
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
	dmaengine, linux-arm-kernel, kernel-janitors, Hulk Robot

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>
---
 drivers/dma/xilinx/xilinx_dma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c
index 75c0b8e904e5..77022ef05ac5 100644
--- a/drivers/dma/xilinx/xilinx_dma.c
+++ b/drivers/dma/xilinx/xilinx_dma.c
@@ -1411,8 +1411,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;
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-28  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  3:09 [PATCH -next] dmaengine: xilinx_dma: Use list_move_tail instead of list_del/list_add_tail Baokun Li
2021-06-08 13:16 ` Radhey Shyam Pandey
2021-07-28  6:35 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).