- patches.arch/x86_mce_intel_decode_physical_address.patch:
[linux-flexiantxendom0-3.2.10.git] / drivers / staging / comedi / drivers / addi-data / addi_amcc_s5933.h
index f96b128..c3284eb 100644 (file)
@@ -212,7 +212,7 @@ struct pcilst_struct {
 };
 
 /* ptr to root list of all amcc devices */
-struct pcilst_struct *amcc_devices;
+static struct pcilst_struct *amcc_devices;
 
 static const int i_ADDIDATADeviceID[] = { 0x15B8, 0x10E8 };
 
@@ -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;