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)
* If this is a single function device,
* don't scan past the first function.
*/
if (!dev->multifunction)
if (func > 0)
if (!dev->multifunction) {
if (func > 0) {
dev->multifunction = 1;
else
} else {
break;
}
}
} else {
if (func == 0)
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