[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190623204849.22089-1-gomonovych@gmail.com>
Date: Sun, 23 Jun 2019 22:48:49 +0200
From: Vasyl Gomonovych <gomonovych@...il.com>
To: gomonovych@...il.com
Cc: George Cherian <george.cherian@...ium.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] crypto: cavium remove casting dma_alloc
From: Vasyl <gomonovych@...il.com>
Generated by: alloc_cast.cocci
Signed-off-by: Vasyl <gomonovych@...il.com>
---
drivers/crypto/cavium/cpt/cptvf_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c
index 0f72e9abdefe..e9b5c4c70317 100644
--- a/drivers/crypto/cavium/cpt/cptvf_main.c
+++ b/drivers/crypto/cavium/cpt/cptvf_main.c
@@ -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);
--
2.17.1
Powered by blists - more mailing lists