diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2021-02-04 10:11:33 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-02-10 09:55:59 +0300 |
commit | d27fb0460b65d1edb2db6b78d109f2531902b3ca (patch) | |
tree | b3af1b38e1b4315fba2b990506aaa9b780f12897 /drivers/crypto/cavium/cpt | |
parent | 0db5bc85c5d871188b6f66ee26bc712a309a4a3d (diff) | |
download | linux-d27fb0460b65d1edb2db6b78d109f2531902b3ca.tar.xz |
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>
Diffstat (limited to 'drivers/crypto/cavium/cpt')
-rw-r--r-- | drivers/crypto/cavium/cpt/cptvf_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c index f016448e43bb..112b12a32542 100644 --- a/drivers/crypto/cavium/cpt/cptvf_main.c +++ b/drivers/crypto/cavium/cpt/cptvf_main.c @@ -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); |