[coreboot] r3566 - trunk/payloads/coreinfo

svn at coreboot.org svn at coreboot.org
Fri Sep 5 17:18:15 CEST 2008


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 <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



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 = 





More information about the coreboot mailing list