Skip to content

Commit

Permalink
crypto: ccp - Use list_move_tail instead of list_del/list_add_tail in…
Browse files Browse the repository at this point in the history
… ccp-dmaengine.c

Using list_move_tail() instead of list_del() + list_add_tail() in ccp-dmaengine.c.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Baokun Li authored and Herbert Xu committed Jun 17, 2021
1 parent 3f52c9a commit 87c8ba5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/ccp/ccp-dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 87c8ba5

Please sign in to comment.