Tag: 68ebb7ce395c6d8ca99163911ec384853d4f88ad

PCI: spear: Use BUG_ON() instead of condition followed by BUG()

Author: Fabio Estevam <fabio.estevam@freescale.com> Use BUG_ON() instead of an if condition followed by BUG(). The semantic patch that makes this change is available in scripts/coccinelle/misc/bugon.cocci. Signed-off-by: Fabio Estevam Signed-off-by: Bjorn Helgaas CC: Pratyush Anand — drivers/pci/host/pcie-spear13xx.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index c49fbdc..98d2683 100644 — …

Continue reading