MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG.
authorzhouchuangao <zhouchuangao@vivo.com>
Sat, 24 Apr 2021 15:59:50 +0000 (08:59 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 26 Apr 2021 08:23:52 +0000 (10:23 +0200)
commit7e9be673cb1b0be0f4279a960c2ecb28a147c327
tree1db952de1a126cc73d5f4bec00a705292b5c187f
parentc55944cc0ec57731931987ff478a9f69fe68f157
MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG.

BUG_ON uses unlikely in if(), it can be optimized at compile time.

Usually, the condition in if() is not satisfied. In my opinion,
this can improve the efficiency of the multi-stage pipeline.

Signed-off-by: zhouchuangao <zhouchuangao@vivo.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/bcm63xx/gpio.c