diff options
| -rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index 000edcda4596..be50e795536d 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
| @@ -191,12 +191,9 @@ static void __iomem *v3_open_config_window(struct pci_bus *bus, | |||
| 191 | /* | 191 | /* |
| 192 | * Trap out illegal values | 192 | * Trap out illegal values |
| 193 | */ | 193 | */ |
| 194 | if (offset > 255) | 194 | BUG_ON(offset > 255); |
| 195 | BUG(); | 195 | BUG_ON(busnr > 255); |
| 196 | if (busnr > 255) | 196 | BUG_ON(devfn > 255); |
| 197 | BUG(); | ||
| 198 | if (devfn > 255) | ||
| 199 | BUG(); | ||
| 200 | 197 | ||
| 201 | if (busnr == 0) { | 198 | if (busnr == 0) { |
| 202 | int slot = PCI_SLOT(devfn); | 199 | int slot = PCI_SLOT(devfn); |
