]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PCI: fix compiler warning in probe.c cause by PPC patch.
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 29 Jan 2004 09:13:27 +0000 (01:13 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 29 Jan 2004 09:13:27 +0000 (01:13 -0800)
drivers/pci/probe.c

index 50391a0fd11e671a51bc48d60893e80c30cf2a65..19c9f836e2f9cf98ae2497c616dd4a1b3eaf61dc 100644 (file)
@@ -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;