hugetlbfs: inode: remove unnecessary (void*) conversions
authorLi zeming <zeming@nfschina.com>
Mon, 7 Nov 2022 01:56:59 +0000 (09:56 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:58:56 +0000 (15:58 -0800)
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>
fs/hugetlbfs/inode.c

index 3ee84604e36df1cd5d2ba8da067593c43a761d6e..790d2727141a85318c4619c039b1690976b48965 100644 (file)
@@ -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);
 }