ieee802154: at86rf230: switch from BUG_ON() to WARN_ON() on problem
authorStefan Schmidt <stefan@datenfreihafen.org>
Fri, 22 Sep 2017 12:13:53 +0000 (14:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:14 +0000 (13:09 +0200)
commit68e70bc28d53a4b09dd7bc1fab2df911dd284bd8
tree4c1f1d8424719970315ee24c055937d6f58d05fe
parent1b8f1ab088baa4cb29c1373d529955786be8fdc1
ieee802154: at86rf230: switch from BUG_ON() to WARN_ON() on problem

[ Upstream commit 20f330452ad8814f2289a589baf65e21270879a7 ]

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/at86rf230.c