Skip to contentSkip to conversation

hugetlbfs: inode: Remove unnecessary (void*) conversions

PATCH Applied Li zeming 2 participants 2 messages Nov 7, 2022

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 hugetlbfs: inode: Remove unnecessary (void*) conversions

The ei pointer does not need to cast the type.

---
 fs/hugetlbfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hugetlbfs/inode.c +1 -1
index f7a5b5124d8a..0728531992a2 100644
@@ -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