mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-24 05:01:03 +02:00
crypto: cpt - remove casting dma_alloc_coherent
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf,
|
|||||||
|
|
||||||
c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
|
c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
|
||||||
rem_q_size;
|
rem_q_size;
|
||||||
curr->head = (u8 *)dma_alloc_coherent(&pdev->dev,
|
curr->head = dma_alloc_coherent(&pdev->dev,
|
||||||
c_size + CPT_NEXT_CHUNK_PTR_SIZE,
|
c_size + CPT_NEXT_CHUNK_PTR_SIZE,
|
||||||
&curr->dma_addr,
|
&curr->dma_addr,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
|
Reference in New Issue
Block a user