Commit f805ed84 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Marc Kleine-Budde

can: peak_usb: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 9e5f1b27
...@@ -423,6 +423,7 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, ...@@ -423,6 +423,7 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n,
new_state = CAN_STATE_ERROR_WARNING; new_state = CAN_STATE_ERROR_WARNING;
break; break;
} }
/* else: fall through */
case CAN_STATE_ERROR_WARNING: case CAN_STATE_ERROR_WARNING:
if (n & PCAN_USB_ERROR_BUS_HEAVY) { if (n & PCAN_USB_ERROR_BUS_HEAVY) {
......
...@@ -353,6 +353,7 @@ static netdev_tx_t peak_usb_ndo_start_xmit(struct sk_buff *skb, ...@@ -353,6 +353,7 @@ static netdev_tx_t peak_usb_ndo_start_xmit(struct sk_buff *skb,
default: default:
netdev_warn(netdev, "tx urb submitting failed err=%d\n", netdev_warn(netdev, "tx urb submitting failed err=%d\n",
err); err);
/* fall through */
case -ENOENT: case -ENOENT:
/* cable unplugged */ /* cable unplugged */
stats->tx_dropped++; stats->tx_dropped++;
......
...@@ -141,8 +141,10 @@ static int pcan_msg_add_rec(struct pcan_usb_pro_msg *pm, u8 id, ...) ...@@ -141,8 +141,10 @@ static int pcan_msg_add_rec(struct pcan_usb_pro_msg *pm, u8 id, ...)
switch (id) { switch (id) {
case PCAN_USBPRO_TXMSG8: case PCAN_USBPRO_TXMSG8:
i += 4; i += 4;
/* fall through */
case PCAN_USBPRO_TXMSG4: case PCAN_USBPRO_TXMSG4:
i += 4; i += 4;
/* fall through */
case PCAN_USBPRO_TXMSG0: case PCAN_USBPRO_TXMSG0:
*pc++ = va_arg(ap, int); *pc++ = va_arg(ap, int);
*pc++ = va_arg(ap, int); *pc++ = va_arg(ap, int);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment