Replace pciinit busses_count with MaxPCIBus.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 15 Oct 2011 15:07:30 +0000 (11:07 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 15 Oct 2011 15:13:59 +0000 (11:13 -0400)
commit28a20e125630c74b6fab79a663c6bc73778808ab
tree91928d68e6f4242e901cbe11af303a8b2641cdb7
parent0ce2138d98197798edfb4753f82b75df45b3446e
Replace pciinit busses_count with MaxPCIBus.

Use the existing bus count instead of calculating a new one.  Also,
the MaxPCIBus is guaranteed to encompass all pci->secondary_bus
references, so no need to check for overruns.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/pciinit.c