mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ecryptfs: main: Remove unnecessary (void*) conversions
@ 2022-11-07  2:04 Li zeming
  0 siblings, 0 replies; only message in thread
From: Li zeming @ 2022-11-07  2:04 UTC (permalink / raw)
  To: code, sforshee, brauner, amir73il; +Cc: ecryptfs, linux-kernel, Li zeming

The ei pointer does not need to cast the type.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 fs/ecryptfs/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c
index 2dd23a82e0de..3e499207d4c6 100644
--- a/fs/ecryptfs/main.c
+++ b/fs/ecryptfs/main.c
@@ -649,7 +649,7 @@ MODULE_ALIAS_FS("ecryptfs");
 static void
 inode_info_init_once(void *vptr)
 {
-	struct ecryptfs_inode_info *ei = (struct ecryptfs_inode_info *)vptr;
+	struct ecryptfs_inode_info *ei = vptr;
 
 	inode_init_once(&ei->vfs_inode);
 }
-- 
2.18.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-07  2:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07  2:04 [PATCH] ecryptfs: main: Remove unnecessary (void*) conversions Li zeming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®