diff options
author | Firo Yang <firogm@gmail.com> | 2015-06-25 18:03:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-25 20:00:42 -0400 |
commit | 83b08bf7defa702cc6ef975fb05c437cd331826c (patch) | |
tree | ae1eaed5d31498236e13d87f431be4b96ac1c636 | |
parent | c69e3c3a0c014e86750e78b7e2ae823f7a9b2cb2 (diff) |
fs/minix: 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>
-rw-r--r-- | fs/minix/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 1182d1e26a9c..086cd0a61e80 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -62,7 +62,7 @@ static struct kmem_cache * minix_inode_cachep; | |||
62 | static struct inode *minix_alloc_inode(struct super_block *sb) | 62 | static struct inode *minix_alloc_inode(struct super_block *sb) |
63 | { | 63 | { |
64 | struct minix_inode_info *ei; | 64 | struct minix_inode_info *ei; |
65 | ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL); | 65 | ei = kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL); |
66 | if (!ei) | 66 | if (!ei) |
67 | return NULL; | 67 | return NULL; |
68 | return &ei->vfs_inode; | 68 | return &ei->vfs_inode; |