Skip to contentSkip to conversation

drivers/can/rtcan_flexcan: Address fall-through warning

PATCH New Jan Kiszka 1 participant 1 message Jun 4, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 drivers/can/rtcan_flexcan: Address fall-through warning

From: Jan Kiszka <[email protected]>

Only detected by the compiler when formatted this way.

---
 kernel/drivers/can/rtcan_flexcan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/drivers/can/rtcan_flexcan.c +2 -1
index ed855b2ed..601dd0ba4 100644
@@ -604,7 +604,8 @@ static void flexcan_change_state(struct rtcan_device *dev,
 				CAN_ERR_CRTL_TX_WARNING :
 				CAN_ERR_CRTL_RX_WARNING;
 		}
-	case CAN_STATE_ERROR_WARNING:	/* fallthrough */
+		/* fallthrough */
+	case CAN_STATE_ERROR_WARNING:
 		/*
 		 * from: ERROR_ACTIVE, ERROR_WARNING
 		 * to  : ERROR_PASSIVE, BUS_OFF
Signature · 1 line
2.26.2