mips/kvm: Use BUG_ON instead of if condition followed by BUG
authorzhouchuangao <zhouchuangao@vivo.com>
Fri, 23 Apr 2021 08:35:09 +0000 (01:35 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Jun 2021 09:40:54 +0000 (11:40 +0200)
commita2cdc24e20573cf719f3171071368f4f7781d970
tree694b2450e3075b0265bd649b6a4597a3118228a1
parentf9cd46a4bb6ce8e9ca827afd2b294266251ef936
mips/kvm: Use BUG_ON instead of if 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>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kvm/tlb.c