treewide: kzalloc() -> kcalloc()
[linux-block.git] / drivers / mtd / parsers / parser_trx.c
index df360a75e1eb1ac20d258465dab88cd51a8571d4..17ac33599783d0c943a902fe7e69d3a94f2444e1 100644 (file)
@@ -62,7 +62,7 @@ static int parser_trx_parse(struct mtd_info *mtd,
        uint8_t curr_part = 0, i = 0;
        int err;
 
-       parts = kzalloc(sizeof(struct mtd_partition) * TRX_PARSER_MAX_PARTS,
+       parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition),
                        GFP_KERNEL);
        if (!parts)
                return -ENOMEM;