[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
@ -513,7 +513,7 @@ static int coda_venus_readdir(struct file *filp, filldir_t filldir,
|
||||
ino_t ino;
|
||||
int ret, i;
|
||||
|
||||
vdir = (struct venus_dirent *)kmalloc(sizeof(*vdir), GFP_KERNEL);
|
||||
vdir = kmalloc(sizeof(*vdir), GFP_KERNEL);
|
||||
if (!vdir) return -ENOMEM;
|
||||
|
||||
i = filp->f_pos;
|
||||
|
Reference in New Issue
Block a user