summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-11-07 09:56:59 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-11-30 15:58:56 -0800
commitdbaf7dc97ab8d526a20d3477419bc14b4890a82c (patch)
treea1c3fb850ee987844947d50b6e255c94bd4cf63a
parente83b39d6bbdb6d25bd6f5c258832774635d29b47 (diff)
hugetlbfs: inode: remove unnecessary (void*) conversions
The ei pointer does not need to cast the type. Link: https://lkml.kernel.org/r/20221107015659.3221-1-zeming@nfschina.com Signed-off-by: Li zeming <zeming@nfschina.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--fs/hugetlbfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 3ee84604e36d..790d2727141a 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -1279,7 +1279,7 @@ static const struct address_space_operations hugetlbfs_aops = {
static void init_once(void *foo)
{
- struct hugetlbfs_inode_info *ei = (struct hugetlbfs_inode_info *)foo;
+ struct hugetlbfs_inode_info *ei = foo;
inode_init_once(&ei->vfs_inode);
}