Skip to content

Commit 641ba6d

Browse files
can: j1939: replace fall through comment by fallthrough pseudo-keyword
Replace the existing /* fall through */ comments the new pseudo-keyword macro fallthrough. Cc: Robin van der Gracht <[email protected]> Cc: Oleksij Rempel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 3331287 commit 641ba6d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

net/can/j1939/transport.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,12 +1264,14 @@ static bool j1939_xtp_rx_cmd_bad_pgn(struct j1939_session *session,
12641264
break;
12651265

12661266
case J1939_ETP_CMD_RTS:
1267-
case J1939_TP_CMD_RTS: /* fall through */
1267+
fallthrough;
1268+
case J1939_TP_CMD_RTS:
12681269
abort = J1939_XTP_ABORT_BUSY;
12691270
break;
12701271

12711272
case J1939_ETP_CMD_CTS:
1272-
case J1939_TP_CMD_CTS: /* fall through */
1273+
fallthrough;
1274+
case J1939_TP_CMD_CTS:
12731275
abort = J1939_XTP_ABORT_ECTS_UNXPECTED_PGN;
12741276
break;
12751277

@@ -1278,7 +1280,8 @@ static bool j1939_xtp_rx_cmd_bad_pgn(struct j1939_session *session,
12781280
break;
12791281

12801282
case J1939_ETP_CMD_EOMA:
1281-
case J1939_TP_CMD_EOMA: /* fall through */
1283+
fallthrough;
1284+
case J1939_TP_CMD_EOMA:
12821285
abort = J1939_XTP_ABORT_OTHER;
12831286
break;
12841287

@@ -1793,7 +1796,8 @@ static void j1939_xtp_rx_dat_one(struct j1939_session *session,
17931796
break;
17941797
fallthrough;
17951798
case J1939_TP_CMD_BAM:
1796-
case J1939_TP_CMD_CTS: /* fall through */
1799+
fallthrough;
1800+
case J1939_TP_CMD_CTS:
17971801
if (skcb->addr.type != J1939_ETP)
17981802
break;
17991803
fallthrough;
@@ -1996,7 +2000,8 @@ static void j1939_tp_cmd_recv(struct j1939_priv *priv, struct sk_buff *skb)
19962000
extd = J1939_ETP;
19972001
fallthrough;
19982002
case J1939_TP_CMD_BAM:
1999-
case J1939_TP_CMD_RTS: /* fall through */
2003+
fallthrough;
2004+
case J1939_TP_CMD_RTS:
20002005
if (skcb->addr.type != extd)
20012006
return;
20022007

0 commit comments

Comments
 (0)