diff options
author | Firo Yang <firogm@gmail.com> | 2015-06-30 23:57:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 04:44:57 +0200 |
commit | d96f184532e9a9bff6cf41af1254edeffa29ff90 (patch) | |
tree | 931d604a27dedb1179387468dcb17dc1fe7e445a /fs/adfs | |
parent | gcov: add support for GCC 5.1 (diff) | |
download | linux-d96f184532e9a9bff6cf41af1254edeffa29ff90.tar.xz linux-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.c | 2 |
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; |