Author: stepan
Date: 2008-09-05 17:18:15 +0200 (Fri, 05 Sep 2008)
New Revision: 3566

Modified:
   trunk/payloads/coreinfo/pci_module.c
Log:
define array size in a single place (trivial)

Signed-off-by: Stefan Reinauer <[EMAIL PROTECTED]>
Acked-by: Stefan Reinauer <[EMAIL PROTECTED]>



Modified: trunk/payloads/coreinfo/pci_module.c
===================================================================
--- trunk/payloads/coreinfo/pci_module.c        2008-09-04 21:05:59 UTC (rev 
3565)
+++ trunk/payloads/coreinfo/pci_module.c        2008-09-05 15:18:15 UTC (rev 
3566)
@@ -29,7 +29,8 @@
        unsigned int id;
 };
 
-static struct pci_devices devices[64];
+#define MAX_PCI_DEVICES 64
+static struct pci_devices devices[MAX_PCI_DEVICES];
 static int devices_index;
 
 /* Number of entries to show in the list */
@@ -190,7 +191,7 @@
                                continue;
 
                        /* FIXME: Remove this arbitrary limitation. */
-                       if (devices_index >= 64)
+                       if (devices_index >= MAX_PCI_DEVICES)
                                return;
 
                        devices[devices_index].device = 


--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to