summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-06-28 10:12:51 +0800
committerakpm <akpm@linux-foundation.org>2022-07-17 17:31:40 -0700
commit2c795fb03f138e9602e1f1ee31b8bfc00a96c7e5 (patch)
tree8621965ccfd1e2df0cef85fa131ee7d1ca1a10b0 /ipc
parent46d36b1be18b745fc9f6be2087633ba2f9895ffe (diff)
downloadlinux-stable-2c795fb03f138e9602e1f1ee31b8bfc00a96c7e5.tar.gz
linux-stable-2c795fb03f138e9602e1f1ee31b8bfc00a96c7e5.tar.bz2
linux-stable-2c795fb03f138e9602e1f1ee31b8bfc00a96c7e5.zip
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 <yuzhe@nfschina.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 12ad7860bb88..f98de32aeea1 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);
}