Turn BUG_ON() into WARN_ON()
authornorly <ny-git@enpas.org>
Tue, 19 Feb 2019 22:00:11 +0000 (23:00 +0100)
committernorly <ny-git@enpas.org>
Tue, 19 Feb 2019 22:00:11 +0000 (23:00 +0100)
module/elmcan.c

index 894bfacbee0dbe06cd681fe8d1bd5334dade83e1..f9f6c7245aaa18c69e33790a9bcd2130ad768160 100644 (file)
@@ -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) {