summaryrefslogtreecommitdiffstats
path: root/lib/bug.c
diff options
context:
space:
mode:
authorzhouchuangao <zhouchuangao@vivo.com>2021-04-24 08:59:50 -0700
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-04-26 10:23:52 +0200
commit7e9be673cb1b0be0f4279a960c2ecb28a147c327 (patch)
tree1db952de1a126cc73d5f4bec00a705292b5c187f /lib/bug.c
parentc55944cc0ec57731931987ff478a9f69fe68f157 (diff)
downloadlinux-stable-7e9be673cb1b0be0f4279a960c2ecb28a147c327.tar.gz
linux-stable-7e9be673cb1b0be0f4279a960c2ecb28a147c327.tar.bz2
linux-stable-7e9be673cb1b0be0f4279a960c2ecb28a147c327.zip
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>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions