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:
parent
0db5bc85c5
commit
d27fb0460b
|
@ -233,10 +233,10 @@ 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);
|
||||||
if (!curr->head) {
|
if (!curr->head) {
|
||||||
dev_err(&pdev->dev, "Command Q (%d) chunk (%d) allocation failed\n",
|
dev_err(&pdev->dev, "Command Q (%d) chunk (%d) allocation failed\n",
|
||||||
i, queue->nchunks);
|
i, queue->nchunks);
|
||||||
|
|
Loading…
Reference in New Issue