X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Farm%2Fmach-integrator%2Fpci_v3.c;h=be50e795536d1aa2375df9957a057bac5d28e942;hb=f7a9b36517d38cfa2213a346b154d2d7046ff223;hp=000edcda4596fb490695bd6d1766be3dd7d355a7;hpb=379df2793efdca18e91cb8570f844ad1f83eb609;p=~andy%2Flinux diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index 000edcda459..be50e795536 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, /* * 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);