PCI: altera: Simplify host bridge window iteration
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 28 May 2016 23:33:46 +0000 (18:33 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:06 +0000 (14:06 -0500)
commitba4f6d9201a7b8840786a29bfe5020cc06bf0f19
tree0da16648e07953b0ca7c3273871e8f28e4a39f44
parent74462284bdda85216c3cf49d52920d4164f47e80
PCI: altera: Simplify host bridge window iteration

The switch is the only statement in the resource_list_for_each_entry()
loop, so remove unnecessary "continue" statements in the switch.  Simplify
checking for the required non-prefetchable memory aperture.  Inline
altera_pcie_release_of_pci_ranges(), which is only called once.

No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c