diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2017-09-22 15:13:58 +0300 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2017-11-06 18:16:26 +0300 |
commit | bd910a960f0c4e817d945b061c8ca75aed3d1091 (patch) | |
tree | 5a4df9fcbfd7660c4aff6b93b52b0293dcbc1546 /drivers/net/ieee802154/atusb.c | |
parent | 2f150344497d8b7c2cdd38e3200e2f11e805cc3a (diff) | |
download | linux-bd910a960f0c4e817d945b061c8ca75aed3d1091.tar.xz |
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/atusb.c')
-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; } |