Commit d27fb046 authored by vulab's avatar vulab Committed by Herbert Xu
Browse files

crypto: cpt - remove casting dma_alloc_coherent



Remove casting the values returned by dma_alloc_coherent.

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0db5bc85
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf,

			c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes :
					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,
							&curr->dma_addr,
							GFP_KERNEL);