treewide: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
@@ -912,7 +912,7 @@ static void sctp_outq_flush_ctrl(struct sctp_flush_ctx *ctx)
|
||||
case SCTP_CID_ABORT:
|
||||
if (sctp_test_T_bit(chunk))
|
||||
ctx->packet->vtag = ctx->asoc->c.my_vtag;
|
||||
/* fallthru */
|
||||
fallthrough;
|
||||
|
||||
/* The following chunks are "response" chunks, i.e.
|
||||
* they are generated in response to something we
|
||||
@@ -927,7 +927,7 @@ static void sctp_outq_flush_ctrl(struct sctp_flush_ctx *ctx)
|
||||
case SCTP_CID_ECN_CWR:
|
||||
case SCTP_CID_ASCONF_ACK:
|
||||
one_packet = 1;
|
||||
/* Fall through */
|
||||
fallthrough;
|
||||
|
||||
case SCTP_CID_SACK:
|
||||
case SCTP_CID_HEARTBEAT:
|
||||
@@ -1030,7 +1030,7 @@ static void sctp_outq_flush_data(struct sctp_flush_ctx *ctx,
|
||||
if (!ctx->packet || !ctx->packet->has_cookie_echo)
|
||||
return;
|
||||
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case SCTP_STATE_ESTABLISHED:
|
||||
case SCTP_STATE_SHUTDOWN_PENDING:
|
||||
case SCTP_STATE_SHUTDOWN_RECEIVED:
|
||||
|
Reference in New Issue
Block a user