]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/hpfs/super.c
[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[net-next-2.6.git] / fs / hpfs / super.c
index 8fe51c343786e99d22c2abb1b2e5b16b8a997364..b76d608323750c9cc9bcdbbd750ae290aa0d28c6 100644 (file)
@@ -462,11 +462,10 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent)
 
        int o;
 
-       sbi = kmalloc(sizeof(*sbi), GFP_KERNEL);
+       sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;
        s->s_fs_info = sbi;
-       memset(sbi, 0, sizeof(*sbi));
 
        sbi->sb_bmp_dir = NULL;
        sbi->sb_cp_table = NULL;