Browse Source

fs/reiserfs: 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>
Firo Yang 10 years ago
parent
commit
89bfae43c8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      fs/reiserfs/super.c

+ 1 - 2
fs/reiserfs/super.c

@@ -588,8 +588,7 @@ static struct kmem_cache *reiserfs_inode_cachep;
 static struct inode *reiserfs_alloc_inode(struct super_block *sb)
 static struct inode *reiserfs_alloc_inode(struct super_block *sb)
 {
 {
 	struct reiserfs_inode_info *ei;
 	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)
 	if (!ei)
 		return NULL;
 		return NULL;
 	atomic_set(&ei->openers, 0);
 	atomic_set(&ei->openers, 0);