ieee802154: atusb: switch from BUG_ON() to WARN_ON() on problem
authorStefan Schmidt <stefan@osg.samsung.com>
Fri, 22 Sep 2017 12:13:58 +0000 (14:13 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 6 Nov 2017 15:16:26 +0000 (16:16 +0100)
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>
drivers/net/ieee802154/atusb.c

index bef53c8..9fb9b56 100644 (file)
@@ -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;
 }