Staging: Use kcalloc or kzalloc
[sfrench/cifs-2.6.git] / drivers / staging / comedi / drivers / addi-data / addi_amcc_s5933.h
index 3682503e34120963d9ce8ef94b2fada91f72e38e..c3284eb0f0ac4447dcc53b8234263df27021a133 100644 (file)
@@ -260,12 +260,10 @@ void v_pci_card_list_init(unsigned short pci_vendor, char display)
                for (i_Count = 0; i_Count < 2; i_Count++) {
                        pci_vendor = i_ADDIDATADeviceID[i_Count];
                        if (pcidev->vendor == pci_vendor) {
-                               amcc = kmalloc(sizeof(*amcc), GFP_KERNEL);
+                               amcc = kzalloc(sizeof(*amcc), GFP_KERNEL);
                                if (amcc == NULL)
                                        continue;
 
-                               memset(amcc, 0, sizeof(*amcc));
-
                                amcc->pcidev = pcidev;
                                if (last)
                                        last->next = amcc;