Subject: Re: [PATCH -next] rfkill: replace BUG_ON() with WARN_ON() in core.c

From: Leon Romanovsky <[email-masked]>
Date: Sun, 23 Oct 2022 11:16:41 +0300

On Fri, Oct 21, 2022 at 09:57:38PM +0800, Yang Yingliang wrote:
> Replace BUG_ON() with WARN_ON() to handle fault more gracefully.
> 
> Suggested-by: Johannes Berg <[email-masked]>
> Signed-off-by: Yang Yingliang <[email-masked]>
> ---
>  net/rfkill/core.c | 25 ++++++++++++++++---------
>  1 file changed, 16 insertions(+), 9 deletions(-)

Please add changelog and version numbers when you set your series.

The same comment as https://lore.kernel.org/all/Y1T3a1y/pWdbt2ow@unreal
or you should delete BUG_ONs completely or simply replace them with WARN_ONs.

There is no need in all these if (...).

Thanks