[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[deliverable/linux.git] / fs / cramfs / inode.c
index 223c0431042deaa8fb77aa99626100338e546f4e..d09b6777c41a20172bdc8a8ee8946ae25f95bfd8 100644 (file)
@@ -242,11 +242,10 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
 
        sb->s_flags |= MS_RDONLY;
 
-       sbi = kmalloc(sizeof(struct cramfs_sb_info), GFP_KERNEL);
+       sbi = kzalloc(sizeof(struct cramfs_sb_info), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;
        sb->s_fs_info = sbi;
-       memset(sbi, 0, sizeof(struct cramfs_sb_info));
 
        /* Invalidate the read buffers on mount: think disk change.. */
        mutex_lock(&read_mutex);
This page took 0.023706 seconds and 5 git commands to generate.