[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to kzalloc. Signed-off-by: Panagiotis Issaris <takis@issaris.org> Jffs2-bit-acked-by: David Woodhouse <dwmw2@infradead.org> 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
32c2d2bc4b
commit
f8314dc60c
@ -248,11 +248,10 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
|
||||
struct buffer_head *bh;
|
||||
struct inode *root;
|
||||
|
||||
sb = kmalloc(sizeof(struct efs_sb_info), GFP_KERNEL);
|
||||
sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL);
|
||||
if (!sb)
|
||||
return -ENOMEM;
|
||||
s->s_fs_info = sb;
|
||||
memset(sb, 0, sizeof(struct efs_sb_info));
|
||||
|
||||
s->s_magic = EFS_SUPER_MAGIC;
|
||||
if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) {
|
||||
|
Reference in New Issue
Block a user