From: Yu Zhe Date: Tue, 28 Jun 2022 02:12:51 +0000 (+0800) Subject: ipc/mqueue: remove unnecessary (void*) conversion X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2c795fb03f138e9602e1f1ee31b8bfc00a96c7e5;p=linux.git ipc/mqueue: remove unnecessary (void*) conversion Remove unnecessary void* type casting. Link: https://lkml.kernel.org/r/20220628021251.17197-1-yuzhe@nfschina.com Signed-off-by: Yu Zhe Signed-off-by: Andrew Morton --- diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 12ad7860bb88f..f98de32aeea17 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -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); }