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

From: Lightweight patch manager (patch@luckynet.dynu.com)
Date: Sun Jun 09 2002 - 10:07:07 EST


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/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:14 EST