]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext3/super.c
[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[net-next-2.6.git] / fs / ext3 / super.c
index 10985017765b9c660a09370270abc5f804c3e2e0..09b4b313ca074bd93f19bebc7ac2c225e3e50862 100644 (file)
@@ -1407,11 +1407,10 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
        int needs_recovery;
        __le32 features;
 
-       sbi = kmalloc(sizeof(*sbi), GFP_KERNEL);
+       sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;
        sb->s_fs_info = sbi;
-       memset(sbi, 0, sizeof(*sbi));
        sbi->s_mount_opt = 0;
        sbi->s_resuid = EXT3_DEF_RESUID;
        sbi->s_resgid = EXT3_DEF_RESGID;