]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-integrator/pci_v3.c
ARM: integrator: use BUG_ON where possible
[~andy/linux] / arch / arm / mach-integrator / pci_v3.c
index 000edcda4596fb490695bd6d1766be3dd7d355a7..be50e795536d1aa2375df9957a057bac5d28e942 100644 (file)
@@ -191,12 +191,9 @@ static void __iomem *v3_open_config_window(struct pci_bus *bus,
        /*
         * Trap out illegal values
         */
-       if (offset > 255)
-               BUG();
-       if (busnr > 255)
-               BUG();
-       if (devfn > 255)
-               BUG();
+       BUG_ON(offset > 255);
+       BUG_ON(busnr > 255);
+       BUG_ON(devfn > 255);
 
        if (busnr == 0) {
                int slot = PCI_SLOT(devfn);