[IB] kzalloc() conversions
[deliverable/linux.git] / drivers / infiniband / hw / mthca / mthca_profile.c
index 0576056b34f463742b7979ac9791b5bde002d8d0..408cd551bff1be1f645401195123b76db1829b8f 100644 (file)
@@ -80,12 +80,10 @@ u64 mthca_make_profile(struct mthca_dev *dev,
        struct mthca_resource tmp;
        int i, j;
 
-       profile = kmalloc(MTHCA_RES_NUM * sizeof *profile, GFP_KERNEL);
+       profile = kzalloc(MTHCA_RES_NUM * sizeof *profile, GFP_KERNEL);
        if (!profile)
                return -ENOMEM;
 
-       memset(profile, 0, MTHCA_RES_NUM * sizeof *profile);
-
        profile[MTHCA_RES_QP].size   = dev_lim->qpc_entry_sz;
        profile[MTHCA_RES_EEC].size  = dev_lim->eec_entry_sz;
        profile[MTHCA_RES_SRQ].size  = dev_lim->srq_entry_sz;
This page took 0.059227 seconds and 5 git commands to generate.