summaryrefslogtreecommitdiffstats
path: root/fs/adfs
diff options
context:
space:
mode:
authorFiro Yang <firogm@gmail.com>2015-06-30 14:57:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-30 19:44:57 -0700
commitd96f184532e9a9bff6cf41af1254edeffa29ff90 (patch)
tree931d604a27dedb1179387468dcb17dc1fe7e445a /fs/adfs
parent3e44c471a2dab210f7e9b1e5f7d4d54d52df59eb (diff)
downloadlinux-stable-d96f184532e9a9bff6cf41af1254edeffa29ff90.tar.gz
linux-stable-d96f184532e9a9bff6cf41af1254edeffa29ff90.tar.bz2
linux-stable-d96f184532e9a9bff6cf41af1254edeffa29ff90.zip
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')
-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;