diff options
author | zhouchuangao <zhouchuangao@vivo.com> | 2021-04-24 08:59:50 -0700 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-04-26 10:23:52 +0200 |
commit | 7e9be673cb1b0be0f4279a960c2ecb28a147c327 (patch) | |
tree | 1db952de1a126cc73d5f4bec00a705292b5c187f /lib/bug.c | |
parent | c55944cc0ec57731931987ff478a9f69fe68f157 (diff) | |
download | linux-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