hugetlbfs: inode: Remove unnecessary (void*) conversions
Subsystems (2)
PATCH 1/1 hugetlbfs: inode: Remove unnecessary (void*) conversions
The ei pointer does not need to cast the type.
Signed-off-by Li zeming <[email protected]>
--- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hugetlbfs/inode.c +1 -1
@@ -1160,7 +1160,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); }
Signature · 1 line
2.18.2
Quoted 7 lines · Li zeming
The ei pointer does not need to cast the type.
Signed-off-by Li zeming <[email protected]>
Reviewed-by Muchun Song <[email protected]>