projects
/
elmcan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Turn BUG_ON() into WARN_ON()
[elmcan.git]
/
module
/
elmcan.c
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 894bfacbee0dbe06cd681fe8d1bd5334dade83e1..f9f6c7245aaa18c69e33790a9bcd2130ad768160 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-874,7
+874,7
@@
static netdev_tx_t elmcan_netdev_start_xmit(struct sk_buff *skb,
/* We shouldn't get here after a hardware fault:
* can_bus_off() calls netif_carrier_off()
*/
-
BUG
_ON(elm->hw_failure);
+
WARN
_ON(elm->hw_failure);
if (elm->tty == NULL
|| elm->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) {