Commit 8d88a432 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes

microblaze/PCI: fix pci_bus_for_each_resource() usage

The pci_bus_for_each_resource() iterator sets "res" itself, so there's
no need to look it up in the bus->resource[] table.

Logically part of 89a74ecc and 8a66da71.

CC: Michal Simek <monstr@monstr.eu>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent e30f9922
...@@ -1024,7 +1024,6 @@ static void __devinit pcibios_fixup_bridge(struct pci_bus *bus) ...@@ -1024,7 +1024,6 @@ static void __devinit pcibios_fixup_bridge(struct pci_bus *bus)
struct pci_dev *dev = bus->self; struct pci_dev *dev = bus->self;
pci_bus_for_each_resource(bus, res, i) { pci_bus_for_each_resource(bus, res, i) {
res = bus->resource[i];
if (!res) if (!res)
continue; continue;
if (!res->flags) if (!res->flags)
...@@ -1224,7 +1223,6 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus) ...@@ -1224,7 +1223,6 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus)
pci_domain_nr(bus), bus->number); pci_domain_nr(bus), bus->number);
pci_bus_for_each_resource(bus, res, i) { pci_bus_for_each_resource(bus, res, i) {
res = bus->resource[i];
if (!res || !res->flags if (!res || !res->flags
|| res->start > res->end || res->parent) || res->start > res->end || res->parent)
continue; continue;
......
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