dmaengine: xilinx_dma: Use list_move_tail instead of list_del/list_add_tail
Subsystems (3)
PATCH 1/1 dmaengine: xilinx_dma: Use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail().
--- drivers/dma/xilinx/xilinx_dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma/xilinx/xilinx_dma.c +1 -2
@@ -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 ;
Quoted 16 lines
-----Original Message-----
From: Baokun Li <[email protected]>
Sent: Tuesday, June 8, 2021 8:39 AM
To: [email protected]; Vinod Koul <[email protected]>; Michal Simek <[email protected]>; Radhey Shyam Pandey <[email protected]>; Shravya Kumbham <[email protected]>; Matthew Murrian <[email protected]>; Romain Perier <[email protected]>; Lars-Peter Clausen <[email protected]>; Krzysztof Kozlowski <[email protected]>; Allen Pais <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; kernel- [email protected]; Hulk Robot <[email protected]>
Subject: [PATCH -next] dmaengine:xilinx_dma: Uselist_move_tailinstead of list_del/list_add_tail
Quoted 4 lines
Using
list_move_tail()instead oflist_del()+list_add_tail().Reported-by Hulk Robot <[email protected]>Signed-off-by Baokun Li <[email protected]>
Thanks!
Quoted 19 lines
--- drivers/dma/xilinx/xilinx_dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/dma/xilinx/xilinx_dma.c +1
-2@@ -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 ;
Quoted 1 line · Baokun Li
Using
list_move_tail()instead oflist_del()+list_add_tail().
Applied, thanks
Signature · 1 line
~Vinod