diff options
author | Baokun Li <libaokun1@huawei.com> | 2021-06-08 05:09:05 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-07-28 08:35:06 +0200 |
commit | 75ba9a715cb65e9c3fb17f13929d8741e570795f (patch) | |
tree | ae4aba6f72e8b838e8750ddf0f7c0c76282dd2a8 /drivers | |
parent | Merge tag 'bus_remove_return_void-5.15' into next (diff) | |
download | linux-75ba9a715cb65e9c3fb17f13929d8741e570795f.tar.xz linux-75ba9a715cb65e9c3fb17f13929d8741e570795f.zip |
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().
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 4b9530a7bf65..213e1a7314b7 100644 --- 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; |