[PATCH] crypto: caam - remove unnecessary (void*) conversions

Yu Zhe posted 1 patch 2 years, 11 months ago
drivers/crypto/caam/dpseci-debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] crypto: caam - remove unnecessary (void*) conversions
Posted by Yu Zhe 2 years, 11 months ago
Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
---
 drivers/crypto/caam/dpseci-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/dpseci-debugfs.c b/drivers/crypto/caam/dpseci-debugfs.c
index 0eca8c2fd916..020a9d8a8a07 100644
--- a/drivers/crypto/caam/dpseci-debugfs.c
+++ b/drivers/crypto/caam/dpseci-debugfs.c
@@ -8,7 +8,7 @@
 
 static int dpseci_dbg_fqs_show(struct seq_file *file, void *offset)
 {
-	struct dpaa2_caam_priv *priv = (struct dpaa2_caam_priv *)file->private;
+	struct dpaa2_caam_priv *priv = file->private;
 	u32 fqid, fcnt, bcnt;
 	int i, err;
 
-- 
2.11.0
Re: [PATCH] crypto: caam - remove unnecessary (void*) conversions
Posted by Herbert Xu 2 years, 10 months ago
On Fri, Mar 17, 2023 at 02:36:43PM +0800, Yu Zhe wrote:
> Pointer variables of void * type do not require type cast.
> 
> Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
> ---
>  drivers/crypto/caam/dpseci-debugfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
RE: [EXT] [PATCH] crypto: caam - remove unnecessary (void*) conversions
Posted by Gaurav Jain 2 years, 10 months ago
Reviewed-by: Gaurav Jain <Gaurav.jain@nxp.com>

> -----Original Message-----
> From: Yu Zhe <yuzhe@nfschina.com>
> Sent: Friday, March 17, 2023 12:07 PM
> To: Horia Geanta <horia.geanta@nxp.com>; Pankaj Gupta
> <pankaj.gupta@nxp.com>; Gaurav Jain <gaurav.jain@nxp.com>;
> herbert@gondor.apana.org.au; davem@davemloft.net
> Cc: linux-crypto@vger.kernel.org; linux-kernel@vger.kernel.org; kernel-
> janitors@vger.kernel.org; liqiong@nfschina.com; Yu Zhe <yuzhe@nfschina.com>
> Subject: [EXT] [PATCH] crypto: caam - remove unnecessary (void*) conversions
> 
> Caution: EXT Email
> 
> Pointer variables of void * type do not require type cast.
> 
> Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
> ---
>  drivers/crypto/caam/dpseci-debugfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/crypto/caam/dpseci-debugfs.c
> b/drivers/crypto/caam/dpseci-debugfs.c
> index 0eca8c2fd916..020a9d8a8a07 100644
> --- a/drivers/crypto/caam/dpseci-debugfs.c
> +++ b/drivers/crypto/caam/dpseci-debugfs.c
> @@ -8,7 +8,7 @@
> 
>  static int dpseci_dbg_fqs_show(struct seq_file *file, void *offset)  {
> -       struct dpaa2_caam_priv *priv = (struct dpaa2_caam_priv *)file->private;
> +       struct dpaa2_caam_priv *priv = file->private;
>         u32 fqid, fcnt, bcnt;
>         int i, err;
> 
> --
> 2.11.0