summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorFiro Yang <firogm@gmail.com>2015-06-25 15:03:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-25 17:00:43 -0700
commit89bfae43c8999344c3025802a3652ac42f55278e (patch)
tree5a15d5d00872c337543182f1d690500c2d833b5c /fs/reiserfs
parentf73c2f1f83ca1c4e2f4515f987973bfe56c86973 (diff)
downloadlinux-stable-89bfae43c8999344c3025802a3652ac42f55278e.tar.gz
linux-stable-89bfae43c8999344c3025802a3652ac42f55278e.tar.bz2
linux-stable-89bfae43c8999344c3025802a3652ac42f55278e.zip
fs/reiserfs: 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/reiserfs')
-rw-r--r--fs/reiserfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 0111ad0466ed..d766bfac06cb 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -588,8 +588,7 @@ static struct kmem_cache *reiserfs_inode_cachep;
static struct inode *reiserfs_alloc_inode(struct super_block *sb)
{
struct reiserfs_inode_info *ei;
- ei = (struct reiserfs_inode_info *)
- kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
+ ei = kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
if (!ei)
return NULL;
atomic_set(&ei->openers, 0);