git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f15034
)
ieee802154: atusb: switch from BUG_ON() to WARN_ON() on problem
author
Stefan Schmidt
<stefan@osg.samsung.com>
Fri, 22 Sep 2017 12:13:58 +0000
(14:13 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/atusb.c
b/drivers/net/ieee802154/atusb.c
index bef53c8173d8bcbc32e9c079d723ccc3863467dc..9fb9b565a002ff7c2e9f6a06c4ef6b9c4d640266 100644
(file)
--- 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;
}