treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / drivers / scsi / qla2xxx / qla_target.c
index b85c833..0fea2e2 100644 (file)
@@ -6248,8 +6248,9 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha)
                return -ENOMEM;
        }
 
-       tgt->qphints = kzalloc((ha->max_qpairs + 1) *
-           sizeof(struct qla_qpair_hint), GFP_KERNEL);
+       tgt->qphints = kcalloc(ha->max_qpairs + 1,
+                              sizeof(struct qla_qpair_hint),
+                              GFP_KERNEL);
        if (!tgt->qphints) {
                kfree(tgt);
                ql_log(ql_log_warn, base_vha, 0x0197,
@@ -7089,8 +7090,9 @@ qlt_mem_alloc(struct qla_hw_data *ha)
        if (!QLA_TGT_MODE_ENABLED())
                return 0;
 
-       ha->tgt.tgt_vp_map = kzalloc(sizeof(struct qla_tgt_vp_map) *
-           MAX_MULTI_ID_FABRIC, GFP_KERNEL);
+       ha->tgt.tgt_vp_map = kcalloc(MAX_MULTI_ID_FABRIC,
+                                    sizeof(struct qla_tgt_vp_map),
+                                    GFP_KERNEL);
        if (!ha->tgt.tgt_vp_map)
                return -ENOMEM;