Skip to content

Commit d96f184

Browse files
firoghtorvalds
authored andcommitted
fs/adfs: remove unneeded cast
kmem_cache_alloc() returns void*. Signed-off-by: Firo Yang <firogm@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3e44c47 commit d96f184

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/adfs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static struct kmem_cache *adfs_inode_cachep;
242242
static struct inode *adfs_alloc_inode(struct super_block *sb)
243243
{
244244
struct adfs_inode_info *ei;
245-
ei = (struct adfs_inode_info *)kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL);
245+
ei = kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL);
246246
if (!ei)
247247
return NULL;
248248
return &ei->vfs_inode;

0 commit comments

Comments
 (0)