[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
@@ -449,7 +449,7 @@ nfs3_proc_unlink_setup(struct rpc_message *msg, struct dentry *dir, struct qstr
|
||||
struct nfs_fattr res;
|
||||
} *ptr;
|
||||
|
||||
ptr = (struct unlinkxdr *)kmalloc(sizeof(*ptr), GFP_KERNEL);
|
||||
ptr = kmalloc(sizeof(*ptr), GFP_KERNEL);
|
||||
if (!ptr)
|
||||
return -ENOMEM;
|
||||
ptr->arg.fh = NFS_FH(dir->d_inode);
|
||||
|
Reference in New Issue
Block a user