Commit 1a3b77ae authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Len Brown

ACPI: acpi_pci_irq_find_prt_entry(): use list_for_each_entry() instead of list_for_each()

Signed-off-by: default avatarMatthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e76d5f7e
...@@ -51,10 +51,8 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment, ...@@ -51,10 +51,8 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
int bus, int bus,
int device, int pin) int device, int pin)
{ {
struct list_head *node = NULL;
struct acpi_prt_entry *entry = NULL; struct acpi_prt_entry *entry = NULL;
if (!acpi_prt.count) if (!acpi_prt.count)
return NULL; return NULL;
...@@ -64,8 +62,7 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment, ...@@ -64,8 +62,7 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
* *
*/ */
spin_lock(&acpi_prt_lock); spin_lock(&acpi_prt_lock);
list_for_each(node, &acpi_prt.entries) { list_for_each_entry(entry, &acpi_prt.entries, node) {
entry = list_entry(node, struct acpi_prt_entry, node);
if ((segment == entry->id.segment) if ((segment == entry->id.segment)
&& (bus == entry->id.bus) && (bus == entry->id.bus)
&& (device == entry->id.device) && (device == entry->id.device)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment