mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +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
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue