diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-09-27 04:49:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:10 -0400 |
commit | f8314dc60ccba7e41f425048c4160dc7f63377d5 (patch) | |
tree | 4e361a6e93dc7f64da0244e5a0dfef1fface0ddb /fs/ufs | |
parent | 32c2d2bc4bed61323f14f2a7d69ccbd567253d8a (diff) |
[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>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 992ee0b87cc3..ef910e784034 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -611,11 +611,10 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent) | |||
611 | 611 | ||
612 | UFSD("ENTER\n"); | 612 | UFSD("ENTER\n"); |
613 | 613 | ||
614 | sbi = kmalloc(sizeof(struct ufs_sb_info), GFP_KERNEL); | 614 | sbi = kzalloc(sizeof(struct ufs_sb_info), GFP_KERNEL); |
615 | if (!sbi) | 615 | if (!sbi) |
616 | goto failed_nomem; | 616 | goto failed_nomem; |
617 | sb->s_fs_info = sbi; | 617 | sb->s_fs_info = sbi; |
618 | memset(sbi, 0, sizeof(struct ufs_sb_info)); | ||
619 | 618 | ||
620 | UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); | 619 | UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); |
621 | 620 | ||