summaryrefslogtreecommitdiff
path: root/drivers/net/ieee802154/atusb.c
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2017-09-22 15:13:58 +0300
committerStefan Schmidt <stefan@osg.samsung.com>2017-11-06 18:16:26 +0300
commitbd910a960f0c4e817d945b061c8ca75aed3d1091 (patch)
tree5a4df9fcbfd7660c4aff6b93b52b0293dcbc1546 /drivers/net/ieee802154/atusb.c
parent2f150344497d8b7c2cdd38e3200e2f11e805cc3a (diff)
downloadlinux-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.c2
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;
}