]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
fs/efs: femove unneeded cast
authorFiro Yang <firogm@gmail.com>
Thu, 25 Jun 2015 22:03:32 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:42 +0000 (17:00 -0700)
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>
fs/efs/super.c

index 7fca462ea4e34165c7c89842ee795b7aeb3d33ba..c8411a30f7dacd20a3723b7caf4f80da8b48fee4 100644 (file)
@@ -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;