[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[deliverable/linux.git] / fs / ufs / super.c
index 992ee0b87cc3f7835fa376c75733822d9ddfbdc6..ef910e7840341b132591cacdb1a0d6b3d62359ee 100644 (file)
@@ -611,11 +611,10 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
        
        UFSD("ENTER\n");
                
-       sbi = kmalloc(sizeof(struct ufs_sb_info), GFP_KERNEL);
+       sbi = kzalloc(sizeof(struct ufs_sb_info), GFP_KERNEL);
        if (!sbi)
                goto failed_nomem;
        sb->s_fs_info = sbi;
-       memset(sbi, 0, sizeof(struct ufs_sb_info));
 
        UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY));
        
This page took 0.035169 seconds and 5 git commands to generate.