From: norly Date: Tue, 19 Feb 2019 22:00:11 +0000 (+0100) Subject: Turn BUG_ON() into WARN_ON() X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=77e7a60b1bd396456efc111ec0cbe345778b15ad;p=elmcan.git Turn BUG_ON() into WARN_ON() --- 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) {