summaryrefslogtreecommitdiff
path: root/fs/adfs/super.c
diff options
context:
space:
mode:
authorFiro Yang <firogm@gmail.com>2015-07-01 00:57:52 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 05:44:57 +0300
commitd96f184532e9a9bff6cf41af1254edeffa29ff90 (patch)
tree931d604a27dedb1179387468dcb17dc1fe7e445a /fs/adfs/super.c
parent3e44c471a2dab210f7e9b1e5f7d4d54d52df59eb (diff)
downloadlinux-d96f184532e9a9bff6cf41af1254edeffa29ff90.tar.xz
fs/adfs: 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>
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r--fs/adfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c
index a19c31d3f369..4d4a0df8344f 100644
--- a/fs/adfs/super.c
+++ b/fs/adfs/super.c
@@ -242,7 +242,7 @@ static struct kmem_cache *adfs_inode_cachep;
static struct inode *adfs_alloc_inode(struct super_block *sb)
{
struct adfs_inode_info *ei;
- ei = (struct adfs_inode_info *)kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL);
+ ei = kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;
return &ei->vfs_inode;