Commit 83b08bf7 authored by Firo Yang's avatar Firo Yang Committed by Linus Torvalds

fs/minix: remove unneeded cast

kmem_cache_alloc() returns void*.
Signed-off-by: default avatarFiro Yang <firogm@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c69e3c3a
...@@ -62,7 +62,7 @@ static struct kmem_cache * minix_inode_cachep; ...@@ -62,7 +62,7 @@ static struct kmem_cache * minix_inode_cachep;
static struct inode *minix_alloc_inode(struct super_block *sb) static struct inode *minix_alloc_inode(struct super_block *sb)
{ {
struct minix_inode_info *ei; struct minix_inode_info *ei;
ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL); ei = kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL);
if (!ei) if (!ei)
return NULL; return NULL;
return &ei->vfs_inode; return &ei->vfs_inode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment