mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to kzalloc. Signed-off-by: Panagiotis Issaris <[email protected]> Jffs2-bit-acked-by: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
32c2d2bc4b
commit
f8314dc60c
35 changed files with 43 additions and 84 deletions
|
|
@ -280,11 +280,10 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
sb->s_op = &affs_sops;
|
||||
sb->s_flags |= MS_NODIRATIME;
|
||||
|
||||
sbi = kmalloc(sizeof(struct affs_sb_info), GFP_KERNEL);
|
||||
sbi = kzalloc(sizeof(struct affs_sb_info), GFP_KERNEL);
|
||||
if (!sbi)
|
||||
return -ENOMEM;
|
||||
sb->s_fs_info = sbi;
|
||||
memset(sbi, 0, sizeof(*sbi));
|
||||
init_MUTEX(&sbi->s_bmlock);
|
||||
|
||||
if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block,
|
||||
|
|
|
|||
Loading…
Reference in a new issue