Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0197e0c authored by Yijing Wang's avatar Yijing Wang Committed by Bjorn Helgaas
Browse files

ARM/PCI: Use list_for_each_entry() for bus traversal



Replace list_for_each() + pci_bus_b() with list_for_each_entry().

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c6f0d5ad
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -57,14 +57,11 @@ 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)
void pcibios_report_status(u_int status_mask, int warn)
{
{
	struct list_head *l;
	struct pci_bus *bus;

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


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


/*
/*
 * We don't use this to fix the device, but initialisation of it.
 * We don't use this to fix the device, but initialisation of it.