2023-03-17 06:37:37

by Yu Zhe

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

Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <[email protected]>
---
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



2023-03-20 09:31:19

by Gaurav Jain

[permalink] [raw]
Subject: RE: [EXT] [PATCH] crypto: caam - remove unnecessary (void*) conversions

Reviewed-by: Gaurav Jain <[email protected]>

> -----Original Message-----
> From: Yu Zhe <[email protected]>
> Sent: Friday, March 17, 2023 12:07 PM
> To: Horia Geanta <[email protected]>; Pankaj Gupta
> <[email protected]>; Gaurav Jain <[email protected]>;
> [email protected]; [email protected]
> Cc: [email protected]; [email protected]; kernel-
> [email protected]; [email protected]; Yu Zhe <[email protected]>
> 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 <[email protected]>
> ---
> 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