Commit 215dd828 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: fix compiler warning in probe.c cause by PPC patch.

parent 07d880ac
...@@ -628,11 +628,13 @@ int __devinit pci_scan_slot(struct pci_bus *bus, int devfn) ...@@ -628,11 +628,13 @@ int __devinit pci_scan_slot(struct pci_bus *bus, int devfn)
* If this is a single function device, * If this is a single function device,
* don't scan past the first function. * don't scan past the first function.
*/ */
if (!dev->multifunction) if (!dev->multifunction) {
if (func > 0) if (func > 0) {
dev->multifunction = 1; dev->multifunction = 1;
else } else {
break; break;
}
}
} else { } else {
if (func == 0) if (func == 0)
break; break;
......
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