summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2005-04-16 13:43:16 +0200
committerMichael Brown2005-04-16 13:43:16 +0200
commit7bd3e883d76f8cd57ffb4fa10440b504b50d2803 (patch)
tree31cec11c63640e97880cd664f158294eca46ee8c /src/drivers
parentSpeed up PCI bus scanning by skipping fns 1-7 if fn 0 is not present. (diff)
downloadipxe-7bd3e883d76f8cd57ffb4fa10440b504b50d2803.tar.gz
ipxe-7bd3e883d76f8cd57ffb4fa10440b504b50d2803.tar.xz
ipxe-7bd3e883d76f8cd57ffb4fa10440b504b50d2803.zip
Consistency
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/bus/pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c
index 7c4e46aa..37aa1cd9 100644
--- a/src/drivers/bus/pci.c
+++ b/src/drivers/bus/pci.c
@@ -31,8 +31,9 @@ static int fill_pci_device ( struct pci_device *pci ) {
int reg;
/* Check bus is within range */
- if ( PCI_BUS ( pci->busdevfn ) > pci_max_bus )
+ if ( PCI_BUS ( pci->busdevfn ) > pci_max_bus ) {
return 0;
+ }
/* Check to see if we've cached the result that this is a
* non-zero function on a non-existent card. This is done to