Skip to content

Commit 40e67c1

Browse files
rxrpc: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: KSPP#115 Reviewed-by: Jeffrey Altman <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 0850bf2 commit 40e67c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/rxrpc/af_rxrpc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ static int rxrpc_connect(struct socket *sock, struct sockaddr *addr,
471471
switch (rx->sk.sk_state) {
472472
case RXRPC_UNBOUND:
473473
rx->sk.sk_state = RXRPC_CLIENT_UNBOUND;
474+
break;
474475
case RXRPC_CLIENT_UNBOUND:
475476
case RXRPC_CLIENT_BOUND:
476477
break;

0 commit comments

Comments
 (0)