Changeset 3566 for trunk

Show
Ignore:
Timestamp:
09/05/08 17:18:15 (3 months ago)
Author:
stepan
Message:

define array size in a single place (trivial)

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Stefan Reinauer <stepan@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/payloads/coreinfo/pci_module.c

    r3508 r3566  
    3030}; 
    3131 
    32 static struct pci_devices devices[64]; 
     32#define MAX_PCI_DEVICES 64 
     33static struct pci_devices devices[MAX_PCI_DEVICES]; 
    3334static int devices_index; 
    3435 
     
    191192 
    192193                        /* FIXME: Remove this arbitrary limitation. */ 
    193                         if (devices_index >= 64) 
     194                        if (devices_index >= MAX_PCI_DEVICES) 
    194195                                return; 
    195196