[PATCH] fs: Removing useless casts
* Removing useless casts * Removing useless wrapper * Conversion from kmalloc+memset to kzalloc Signed-off-by: Panagiotis Issaris <takis@issaris.org> Acked-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f8314dc60c
commit
f52720ca5f
@@ -553,13 +553,13 @@ xfs_vn_follow_link(
|
||||
ASSERT(dentry);
|
||||
ASSERT(nd);
|
||||
|
||||
link = (char *)kmalloc(MAXPATHLEN+1, GFP_KERNEL);
|
||||
link = kmalloc(MAXPATHLEN+1, GFP_KERNEL);
|
||||
if (!link) {
|
||||
nd_set_link(nd, ERR_PTR(-ENOMEM));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uio = (uio_t *)kmalloc(sizeof(uio_t), GFP_KERNEL);
|
||||
uio = kmalloc(sizeof(uio_t), GFP_KERNEL);
|
||||
if (!uio) {
|
||||
kfree(link);
|
||||
nd_set_link(nd, ERR_PTR(-ENOMEM));
|
||||
|
Reference in New Issue
Block a user