From: Lightweight patch manager <patch@luckynet.dynu.com>
To: Dave Jones <davej@suse.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH][2.5] pcbios should use list_move_tail, too (1 occ)
Date: Sun, 9 Jun 2002 09:07:07 -0600 (MDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0206090905550.26112-100000@hawkeye.luckynet.adm> (raw)
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.
reply other threads:[~2002-06-09 15:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0206090905550.26112-100000@hawkeye.luckynet.adm \
--to=patch@luckynet.dynu.com \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).