mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00: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:
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 :
|
||||
rem_q_size;
|
||||
curr->head = (u8 *)dma_alloc_coherent(&pdev->dev,
|
||||
c_size + CPT_NEXT_CHUNK_PTR_SIZE,
|
||||
&curr->dma_addr,
|
||||
GFP_KERNEL);
|
||||
curr->head = dma_alloc_coherent(&pdev->dev,
|
||||
c_size + CPT_NEXT_CHUNK_PTR_SIZE,
|
||||
&curr->dma_addr,
|
||||
GFP_KERNEL);
|
||||
if (!curr->head) {
|
||||
dev_err(&pdev->dev, "Command Q (%d) chunk (%d) allocation failed\n",
|
||||
i, queue->nchunks);
|
||||
|
Loading…
Reference in New Issue
Block a user