OSDN Git Service

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:26:58 +0000 (13:26 +0200)
commit691a13ac70e31e3004310bf56360ee69c62514cb
tree21eed207672d12d762a7847286490507bb6620a3
parentbe4691a7c58b40ddcdad5f82fb652475afc3440e
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