mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-03 13:13:40 +00:00
ACPI: acpi_pci_irq_find_prt_entry(): use list_for_each_entry() instead of list_for_each()
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
e76d5f7e83
commit
1a3b77ae60
@ -51,10 +51,8 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
|
||||
int bus,
|
||||
int device, int pin)
|
||||
{
|
||||
struct list_head *node = NULL;
|
||||
struct acpi_prt_entry *entry = NULL;
|
||||
|
||||
|
||||
if (!acpi_prt.count)
|
||||
return NULL;
|
||||
|
||||
@ -64,8 +62,7 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment,
|
||||
*
|
||||
*/
|
||||
spin_lock(&acpi_prt_lock);
|
||||
list_for_each(node, &acpi_prt.entries) {
|
||||
entry = list_entry(node, struct acpi_prt_entry, node);
|
||||
list_for_each_entry(entry, &acpi_prt.entries, node) {
|
||||
if ((segment == entry->id.segment)
|
||||
&& (bus == entry->id.bus)
|
||||
&& (device == entry->id.device)
|
||||
|
Loading…
Reference in New Issue
Block a user