From: Baokun Li Date: Wed, 9 Jun 2021 07:15:26 +0000 (+0800) Subject: crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c X-Git-Tag: v5.15~755^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87c8ba5cd7f99b1c05589c455703f54e92f43ed0;p=platform%2Fkernel%2Flinux-starfive.git crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in ccp-dmaengine.c Using list_move_tail() instead of list_del() + list_add_tail() in ccp-dmaengine.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c index 0770a83..d718db2 100644 --- a/drivers/crypto/ccp/ccp-dmaengine.c +++ b/drivers/crypto/ccp/ccp-dmaengine.c @@ -307,8 +307,7 @@ static dma_cookie_t ccp_tx_submit(struct dma_async_tx_descriptor *tx_desc) spin_lock_irqsave(&chan->lock, flags); cookie = dma_cookie_assign(tx_desc); - list_del(&desc->entry); - list_add_tail(&desc->entry, &chan->pending); + list_move_tail(&desc->entry, &chan->pending); spin_unlock_irqrestore(&chan->lock, flags);