Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
fs/efs: femove unneeded cast
Browse files Browse the repository at this point in the history
kmem_cache_alloc() returns void*.

Signed-off-by: Firo Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
firogh authored and torvalds committed Jun 26, 2015
1 parent 3c816e4 commit 35a4c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/efs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static struct kmem_cache * efs_inode_cachep;
static struct inode *efs_alloc_inode(struct super_block *sb)
{
struct efs_inode_info *ei;
ei = (struct efs_inode_info *)kmem_cache_alloc(efs_inode_cachep, GFP_KERNEL);
ei = kmem_cache_alloc(efs_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;
return &ei->vfs_inode;
Expand Down

0 comments on commit 35a4c90

Please sign in to comment.