Commit 34f14bfb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove pci_for_each_bus() usage from drivers/pci/pci.c

parent 80fc6c72
...@@ -55,11 +55,11 @@ pci_bus_max_busnr(struct pci_bus* bus) ...@@ -55,11 +55,11 @@ pci_bus_max_busnr(struct pci_bus* bus)
unsigned char __devinit unsigned char __devinit
pci_max_busnr(void) pci_max_busnr(void)
{ {
struct pci_bus* bus; struct pci_bus *bus = NULL;
unsigned char max, n; unsigned char max, n;
max = 0; max = 0;
pci_for_each_bus(bus) { while ((bus = pci_find_next_bus(bus)) != NULL) {
n = pci_bus_max_busnr(bus); n = pci_bus_max_busnr(bus);
if(n > max) if(n > max)
max = n; max = n;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment