Commit 29d45a64 authored by Jason Wang's avatar Jason Wang Committed by Linus Walleij

pinctrl: bcm2835: Replace BUG with BUG_ON

The if condition followed by BUG can be replaced to BUG_ON which is
more compact and formal in linux source.
Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210624064913.41788-1-wangborong@cdjrlc.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 41353ae7
...@@ -416,8 +416,7 @@ static void bcm2835_gpio_irq_handler(struct irq_desc *desc) ...@@ -416,8 +416,7 @@ static void bcm2835_gpio_irq_handler(struct irq_desc *desc)
} }
} }
/* This should not happen, every IRQ has a bank */ /* This should not happen, every IRQ has a bank */
if (i == BCM2835_NUM_IRQS) BUG_ON(i == BCM2835_NUM_IRQS);
BUG();
chained_irq_enter(host_chip, desc); chained_irq_enter(host_chip, desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment