[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
[deliverable/linux.git] / fs / qnx4 / inode.c
index 5a903491e6972577ef38ee98a1d1c5fb1ddfc1e7..8497609f50221834986cce0b6799bec35fdca6f9 100644 (file)
@@ -358,11 +358,10 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
        const char *errmsg;
        struct qnx4_sb_info *qs;
 
-       qs = kmalloc(sizeof(struct qnx4_sb_info), GFP_KERNEL);
+       qs = kzalloc(sizeof(struct qnx4_sb_info), GFP_KERNEL);
        if (!qs)
                return -ENOMEM;
        s->s_fs_info = qs;
-       memset(qs, 0, sizeof(struct qnx4_sb_info));
 
        sb_set_blocksize(s, QNX4_BLOCK_SIZE);
 
This page took 0.027933 seconds and 5 git commands to generate.