patch-2.3.38 linux/arch/i386/kernel/pci-pc.c
Next file: linux/arch/i386/kernel/setup.c
Previous file: linux/arch/i386/kernel/mtrr.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Jan 7 16:59:40 2000
- Orig file:
v2.3.37/linux/arch/i386/kernel/pci-pc.c
- Orig date:
Thu Jan 6 12:57:47 2000
diff -u --recursive --new-file v2.3.37/linux/arch/i386/kernel/pci-pc.c linux/arch/i386/kernel/pci-pc.c
@@ -633,9 +633,8 @@
unsigned char bus, devfn;
DBG("PCI: Sorting device list...\n");
- while (pci_devices.next != &pci_devices) {
+ while (!list_empty(&pci_devices)) {
ln = pci_devices.next;
- list_del(ln);
dev = pci_dev_g(ln);
idx = found = 0;
while (pci_bios_find_device(dev->vendor, dev->device, idx, &bus, &devfn) == PCIBIOS_SUCCESSFUL) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)