diff options
author | Firo Yang <firogm@gmail.com> | 2015-06-25 15:03:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-25 17:00:43 -0700 |
commit | 89bfae43c8999344c3025802a3652ac42f55278e (patch) | |
tree | 5a15d5d00872c337543182f1d690500c2d833b5c /fs/reiserfs | |
parent | f73c2f1f83ca1c4e2f4515f987973bfe56c86973 (diff) | |
download | op-kernel-dev-89bfae43c8999344c3025802a3652ac42f55278e.zip op-kernel-dev-89bfae43c8999344c3025802a3652ac42f55278e.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 0111ad0..d766bfa 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); |