Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jason Wang <wangborong@cdjrlc.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210624064913.41788-1-wangborong@cdjrlc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Jason Wang and committed by
Linus Walleij
29d45a64 41353ae7

+1 -2
+1 -2
drivers/pinctrl/bcm/pinctrl-bcm2835.c
··· 416 416 } 417 417 } 418 418 /* This should not happen, every IRQ has a bank */ 419 - if (i == BCM2835_NUM_IRQS) 420 - BUG(); 419 + BUG_ON(i == BCM2835_NUM_IRQS); 421 420 422 421 chained_irq_enter(host_chip, desc); 423 422