projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
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
bef53c8
..
9fb9b56
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;
}