[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[deliverable/linux.git] / fs / adfs / super.c
index 82011019494ccf6bbcefa838e28b5c130739470b..959dbf1f8e63eb10ba94dbf580a494930a727756 100644 (file)
@@ -339,11 +339,10 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
 
        sb->s_flags |= MS_NODIRATIME;
 
-       asb = kmalloc(sizeof(*asb), GFP_KERNEL);
+       asb = kzalloc(sizeof(*asb), GFP_KERNEL);
        if (!asb)
                return -ENOMEM;
        sb->s_fs_info = asb;
-       memset(asb, 0, sizeof(*asb));
 
        /* set default options */
        asb->s_uid = 0;
This page took 0.027226 seconds and 5 git commands to generate.