projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0195a
)
PCI: spear: Use BUG_ON() instead of condition followed by BUG()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Thu, 20 Aug 2015 06:31:24 +0000
(
01:31
-0500)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 20 Aug 2015 06:31:24 +0000
(
01:31
-0500)
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 <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Pratyush Anand <pratyush.anand@gmail.com>
drivers/pci/host/pcie-spear13xx.c
patch
|
blob
|
history
diff --git
a/drivers/pci/host/pcie-spear13xx.c
b/drivers/pci/host/pcie-spear13xx.c
index
c49fbdc
..
98d2683
100644
(file)
--- a/
drivers/pci/host/pcie-spear13xx.c
+++ b/
drivers/pci/host/pcie-spear13xx.c
@@
-223,8
+223,7
@@
static irqreturn_t spear13xx_pcie_irq_handler(int irq, void *arg)
status = readl(&app_reg->int_sts);
if (status & MSI_CTRL_INT) {
- if (!IS_ENABLED(CONFIG_PCI_MSI))
- BUG();
+ BUG_ON(!IS_ENABLED(CONFIG_PCI_MSI));
dw_handle_msi_irq(pp);
}