diff options
author | Li zeming <zeming@nfschina.com> | 2022-11-07 04:56:59 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-01 02:58:56 +0300 |
commit | dbaf7dc97ab8d526a20d3477419bc14b4890a82c (patch) | |
tree | a1c3fb850ee987844947d50b6e255c94bd4cf63a /fs/hugetlbfs | |
parent | e83b39d6bbdb6d25bd6f5c258832774635d29b47 (diff) | |
download | linux-dbaf7dc97ab8d526a20d3477419bc14b4890a82c.tar.xz |
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>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r-- | fs/hugetlbfs/inode.c | 2 |
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); } |