[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221107014402.3088-1-zeming@nfschina.com>
Date: Mon, 7 Nov 2022 09:44:02 +0800
From: Li zeming <zeming@...china.com>
To: zohar@...ux.ibm.com, dmitry.kasatkin@...il.com,
paul@...l-moore.com, jmorris@...ei.org, serge@...lyn.com
Cc: linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] integrity: iint: Remove unnecessary (void*) conversions
The iint pointer does not need to cast the type.
Signed-off-by: Li zeming <zeming@...china.com>
---
security/integrity/iint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/integrity/iint.c b/security/integrity/iint.c
index 8638976f7990..d66b94c7c8d5 100644
--- a/security/integrity/iint.c
+++ b/security/integrity/iint.c
@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)
static void init_once(void *foo)
{
- struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;
+ struct integrity_iint_cache *iint = foo;
memset(iint, 0, sizeof(*iint));
iint->ima_file_status = INTEGRITY_UNKNOWN;
--
2.18.2
Powered by blists - more mailing lists