All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cordelia <cordsam@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] pci: Changed list_for_each to list_for_each_entry
Date: Mon, 18 Aug 2008 09:43:44 -0700	[thread overview]
Message-ID: <48A9A6C0.6070109@linux.vnet.ibm.com> (raw)

Signed-off-by: Cordelia Sam <cordesam@gmail.com>
---
 drivers/pci/probe.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index a04498d..6a7ba36 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1245,13 +1245,11 @@ static int __init pci_sort_bf_cmp(const struct pci_dev *a, const struct pci_dev
  */
 static void __init pci_insertion_sort_klist(struct pci_dev *a, struct list_head *list)
 {
-	struct list_head *pos;
 	struct klist_node *n;
 	struct device *dev;
 	struct pci_dev *b;
 
-	list_for_each(pos, list) {
-		n = container_of(pos, struct klist_node, n_node);
+	list_for_each_entry(n, list, n_node) {
 		dev = container_of(n, struct device, knode_bus);
 		b = to_pci_dev(dev);
 		if (pci_sort_bf_cmp(a, b) <= 0) {
-- 
1.5.4.3

                 reply	other threads:[~2008-08-18 16:44 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=48A9A6C0.6070109@linux.vnet.ibm.com \
    --to=cordsam@linux.vnet.ibm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.