projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e44c47
)
fs/adfs: remove unneeded cast
author
Firo Yang
<
[email protected]
>
Tue, 30 Jun 2015 21:57:52 +0000
(14:57 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 1 Jul 2015 02:44:57 +0000
(19:44 -0700)
kmem_cache_alloc() returns void*.
Signed-off-by: Firo Yang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/adfs/super.c
patch
|
blob
|
history
diff --git
a/fs/adfs/super.c
b/fs/adfs/super.c
index a19c31d3f369469ec5771ca5cf61c371b5865881..4d4a0df8344fe2a7d9316d91e890a62a40a34172 100644
(file)
--- 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;