diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2017-09-22 14:13:58 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2017-11-06 16:16:26 +0100 |
commit | bd910a960f0c4e817d945b061c8ca75aed3d1091 (patch) | |
tree | 5a4df9fcbfd7660c4aff6b93b52b0293dcbc1546 /drivers/net/ieee802154 | |
parent | 2f150344497d8b7c2cdd38e3200e2f11e805cc3a (diff) |
ieee802154: atusb: switch from BUG_ON() to WARN_ON() on problem
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@osg.samsung.com>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/atusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/atusb.c b/drivers/net/ieee802154/atusb.c index bef53c8173d8..9fb9b565a002 100644 --- a/drivers/net/ieee802154/atusb.c +++ b/drivers/net/ieee802154/atusb.c @@ -403,7 +403,7 @@ static int atusb_xmit(struct ieee802154_hw *hw, struct sk_buff *skb) static int atusb_ed(struct ieee802154_hw *hw, u8 *level) { - BUG_ON(!level); + WARN_ON(!level); *level = 0xbe; return 0; } |