Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89bfae43 authored by Firo Yang's avatar Firo Yang Committed by Linus Torvalds
Browse files

fs/reiserfs: 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 f73c2f1f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -588,8 +588,7 @@ static struct kmem_cache *reiserfs_inode_cachep;
static struct inode *reiserfs_alloc_inode(struct super_block *sb)
{
	struct reiserfs_inode_info *ei;
	ei = (struct reiserfs_inode_info *)
	    kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
	ei = kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
	if (!ei)
		return NULL;
	atomic_set(&ei->openers, 0);