ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problem
authorStefan Schmidt <stefan@datenfreihafen.org>
Fri, 22 Sep 2017 12:14:05 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:12:37 +0000 (13:12 +0200)
commitf8b8e026d51dba150fa04af39bd1163fbdb787ca
tree14f6e5ca00bd904bb58658ffe18a5d30bc0468ae
parent7a389e0d192a9f84a7b85784f32823b9de12f31e
ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problem

[ Upstream commit 8f2fbc6c60ff213369e06a73610fc882a42fdf20 ]

The check is valid but it does not warrant to crash the kernel. A
WARN_ON() is good enough here.
Found by checkpatch.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ieee802154/fakelb.c