[PATCH][2.5] pcbios should use list_move_tail, too (1 occ)

Lightweight patch manager (patch@luckynet.dynu.com)
Sun, 9 Jun 2002 09:07:07 -0600 (MDT)


This patch introduces list_move_tail for the pcbios pci driver

--- linus-2.5/arch/i386/pci/pcbios.c Sun Jun 9 04:12:38 2002
+++ thunder-2.5/arch/i386/pci/pcbios.c Sun Jun 9 05:15:31 2002
@@ -444,8 +444,7 @@
for (ln=pci_devices.next; ln != &pci_devices; ln=ln->next) {
d = pci_dev_g(ln);
if (d->bus->number == bus && d->devfn == devfn) {
- list_del(&d->global_list);
- list_add_tail(&d->global_list, &sorted_devices);
+ list_move_tail(&d->global_list, &sorted_devices);
if (d == dev)
found = 1;
break;
@@ -463,8 +462,7 @@
if (!found) {
printk(KERN_WARNING "PCI: Device %02x:%02x not found by BIOS\n",
dev->bus->number, dev->devfn);
- list_del(&dev->global_list);
- list_add_tail(&dev->global_list, &sorted_devices);
+ list_move_tail(&dev->global_list, &sorted_devices);
}
}
list_splice(&sorted_devices, &pci_devices);

-- 
Lightweight patch manager using pine. If you have any objections, tell me.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/