diff options
author | Firo Yang <firogm@gmail.com> | 2015-06-25 18:03:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-25 20:00:43 -0400 |
commit | 89bfae43c8999344c3025802a3652ac42f55278e (patch) | |
tree | 5a15d5d00872c337543182f1d690500c2d833b5c /fs/reiserfs/super.c | |
parent | f73c2f1f83ca1c4e2f4515f987973bfe56c86973 (diff) |
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/super.c')
-rw-r--r-- | fs/reiserfs/super.c | 3 |
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; | |||
588 | static struct inode *reiserfs_alloc_inode(struct super_block *sb) | 588 | static struct inode *reiserfs_alloc_inode(struct super_block *sb) |
589 | { | 589 | { |
590 | struct reiserfs_inode_info *ei; | 590 | struct reiserfs_inode_info *ei; |
591 | ei = (struct reiserfs_inode_info *) | 591 | ei = kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL); |
592 | kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL); | ||
593 | if (!ei) | 592 | if (!ei) |
594 | return NULL; | 593 | return NULL; |
595 | atomic_set(&ei->openers, 0); | 594 | atomic_set(&ei->openers, 0); |