Message ID | 20150909113235.GA10991@red-moon (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 508cc56..2bf4ac1 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -728,14 +728,10 @@ int pci_claim_bridge_resource(struct pci_dev *bridge, int i) break; case 2: pci_setup_bridge_mmio_pref(bridge); - break; default: - return -EINVAL; + break; } - if (pci_claim_resource(bridge, i) == 0) - return 0; /* claimed a smaller window */ - return -EINVAL; }