Re: [PATCH] riscv: fix bugon.cocci warnings
From: Pekka Enberg
Date: Sun Feb 28 2021 - 10:11:06 EST
On Sun, Feb 28, 2021 at 12:10:22PM +0100, Julia Lawall wrote:
>
From: kernel test robot <lkp@xxxxxxxxx>
>
>
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@xxxxxxxxxxxxxxxxx>
>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
>
Signed-off-by: Julia Lawall <julia.lawall@xxxxxxxx>
Reviewed-by: Pekka Enberg <penberg@xxxxxxxxxx>