treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / drivers / net / ethernet / qlogic / qlcnic / qlcnic_main.c
index 1b5f7d5..8c67240 100644 (file)
@@ -1025,15 +1025,17 @@ int qlcnic_init_pci_info(struct qlcnic_adapter *adapter)
 
        act_pci_func = ahw->total_nic_func;
 
-       adapter->npars = kzalloc(sizeof(struct qlcnic_npar_info) *
-                                act_pci_func, GFP_KERNEL);
+       adapter->npars = kcalloc(act_pci_func,
+                                sizeof(struct qlcnic_npar_info),
+                                GFP_KERNEL);
        if (!adapter->npars) {
                ret = -ENOMEM;
                goto err_pci_info;
        }
 
-       adapter->eswitch = kzalloc(sizeof(struct qlcnic_eswitch) *
-                               QLCNIC_NIU_MAX_XG_PORTS, GFP_KERNEL);
+       adapter->eswitch = kcalloc(QLCNIC_NIU_MAX_XG_PORTS,
+                                  sizeof(struct qlcnic_eswitch),
+                                  GFP_KERNEL);
        if (!adapter->eswitch) {
                ret = -ENOMEM;
                goto err_npars;