]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/hfs/super.c
[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[mirror_ubuntu-artful-kernel.git] / fs / hfs / super.c
index 34937ee83ab1052d2510d1ead5d3ca9fdf78af63..05dffff1a3722a1dc9d19bd5a858ec0d4dcdca4a 100644 (file)
@@ -356,11 +356,10 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent)
        struct inode *root_inode;
        int res;
 
-       sbi = kmalloc(sizeof(struct hfs_sb_info), GFP_KERNEL);
+       sbi = kzalloc(sizeof(struct hfs_sb_info), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;
        sb->s_fs_info = sbi;
-       memset(sbi, 0, sizeof(struct hfs_sb_info));
        INIT_HLIST_HEAD(&sbi->rsrc_inodes);
 
        res = -EINVAL;