patch-2.2.4 linux/arch/i386/kernel/bios32.c

Next file: linux/arch/i386/kernel/i386_ksyms.c
Previous file: linux/arch/arm/kernel/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/arch/i386/kernel/bios32.c linux/arch/i386/kernel/bios32.c
@@ -997,15 +997,15 @@
 			    l != 0x0000 && l != 0xffff) {
 #ifdef CONFIG_PCI_BIOS
 				if (pci_bios_present) {
-					int succ, idx = 0;
+					int err, idx = 0;
 					u8 bios_bus, bios_dfn;
 					u16 d;
 					pcibios_read_config_word(n, i, PCI_DEVICE_ID, &d);
 					DBG("BIOS test for %02x:%02x (%04x:%04x)\n", n, i, l, d);
-					while ((succ = pci_bios_find_device(l, d, idx, &bios_bus, &bios_dfn)) &&
+					while (!(err = pci_bios_find_device(l, d, idx, &bios_bus, &bios_dfn)) &&
 					       (bios_bus != n || bios_dfn != i))
 						idx++;
-					if (!succ)
+					if (err)
 						break;
 				}
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)