Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Baokun Li and committed by
Herbert Xu
87c8ba5c 3f52c9ae

+1 -2
+1 -2
drivers/crypto/ccp/ccp-dmaengine.c
··· 307 307 spin_lock_irqsave(&chan->lock, flags); 308 308 309 309 cookie = dma_cookie_assign(tx_desc); 310 - list_del(&desc->entry); 311 - list_add_tail(&desc->entry, &chan->pending); 310 + list_move_tail(&desc->entry, &chan->pending); 312 311 313 312 spin_unlock_irqrestore(&chan->lock, flags); 314 313