summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2019-02-19 23:00:11 +0100
committernorly <ny-git@enpas.org>2019-02-19 23:00:11 +0100
commit77e7a60b1bd396456efc111ec0cbe345778b15ad (patch)
tree4ac3356263d18e737ee5b268d93ca9a9b0741a79 /module
parent0b1d25e2666db847f3096227ac0b335e197c9d58 (diff)
Turn BUG_ON() into WARN_ON()
Diffstat (limited to 'module')
-rw-r--r--module/elmcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/elmcan.c b/module/elmcan.c
index 894bfac..f9f6c72 100644
--- 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) {