Skip to content
Unverified Commit e75e6bf4 authored by zhouchuangao's avatar zhouchuangao Committed by Palmer Dabbelt
Browse files

riscv/mm: Use BUG_ON instead of if condition followed by BUG.



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

Signed-off-by: default avatarzhouchuangao <zhouchuangao@vivo.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent b1ebaa0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment