hpfs: Remove unessary cast
authorFiro Yang <firogm@gmail.com>
Thu, 23 Apr 2015 09:28:45 +0000 (17:28 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Jul 2015 20:35:31 +0000 (13:35 -0700)
Avoid a pointless kmem_cache_alloc() return value cast in
fs/hpfs/super.c::hpfs_alloc_inode()

Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hpfs/super.c

index 037e3e597ff490b0d8e75fac648540e1a07ff51a..0642516d36c8807cdd5c7d27c2ca088a4a1d80e5 100644 (file)
@@ -228,7 +228,7 @@ static struct kmem_cache * hpfs_inode_cachep;
 static struct inode *hpfs_alloc_inode(struct super_block *sb)
 {
        struct hpfs_inode_info *ei;
-       ei = (struct hpfs_inode_info *)kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
+       ei = kmem_cache_alloc(hpfs_inode_cachep, GFP_NOFS);
        if (!ei)
                return NULL;
        ei->vfs_inode.i_version = 1;