On Sun, Feb 28, 2021 at 12:10:22PM +0100, Julia Lawall wrote:
From: kernel test robot <lkp(a)intel.com>
Use BUG_ON instead of a if condition followed by BUG.
Generated by: scripts/coccinelle/misc/bugon.cocci
Fixes: c22b0bcb1dd0 ("riscv: Add kprobes supported")
CC: Guo Ren <guoren(a)linux.alibaba.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Julia Lawall <julia.lawall(a)inria.fr>
Reviewed-by: Pekka Enberg <penberg(a)kernel.org>