ipc/mqueue: remove unnecessary (void*) conversion
authorYu Zhe <yuzhe@nfschina.com>
Tue, 28 Jun 2022 02:12:51 +0000 (10:12 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:40 +0000 (17:31 -0700)
Remove unnecessary void* type casting.

Link: https://lkml.kernel.org/r/20220628021251.17197-1-yuzhe@nfschina.com
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/mqueue.c

index 12ad786..f98de32 100644 (file)
@@ -489,7 +489,7 @@ static struct vfsmount *mq_create_mount(struct ipc_namespace *ns)
 
 static void init_once(void *foo)
 {
-       struct mqueue_inode_info *p = (struct mqueue_inode_info *) foo;
+       struct mqueue_inode_info *p = foo;
 
        inode_init_once(&p->vfs_inode);
 }