mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
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:
@@ -193,7 +193,6 @@ static void mptcp_check_data_fin_ack(struct sock *sk)
|
||||
sk->sk_state_change(sk);
|
||||
break;
|
||||
case TCP_CLOSING:
|
||||
fallthrough;
|
||||
case TCP_LAST_ACK:
|
||||
inet_sk_state_store(sk, TCP_CLOSE);
|
||||
sk->sk_state_change(sk);
|
||||
@@ -1541,7 +1540,7 @@ static void mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how)
|
||||
case TCP_LISTEN:
|
||||
if (!(how & RCV_SHUTDOWN))
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case TCP_SYN_SENT:
|
||||
tcp_disconnect(ssk, O_NONBLOCK);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user