Skip to content

Commit

Permalink
ARM/PCI: Use list_for_each_entry() for bus traversal
Browse files Browse the repository at this point in the history
Replace list_for_each() + pci_bus_b() with list_for_each_entry().

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Yijing Wang authored and Bjorn Helgaas committed Feb 14, 2014
1 parent c6f0d5a commit f0197e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/arm/kernel/bios32.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@ static void pcibios_bus_report_status(struct pci_bus *bus, u_int status_mask, in

void pcibios_report_status(u_int status_mask, int warn)
{
struct list_head *l;

list_for_each(l, &pci_root_buses) {
struct pci_bus *bus = pci_bus_b(l);
struct pci_bus *bus;

list_for_each_entry(bus, &pci_root_buses, node)
pcibios_bus_report_status(bus, status_mask, warn);
}
}

/*
Expand Down

0 comments on commit f0197e0

Please sign in to comment.