projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0850bf2
)
rxrpc: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:39:10 +0000
(12:39 -0600)
committer
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 4 Jun 2021 22:40:04 +0000
(17:40 -0500)
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:
https://github.com/KSPP/linux/issues/115
Reviewed-by: Jeffrey Altman <jaltman@auristor.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
net/rxrpc/af_rxrpc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rxrpc/af_rxrpc.c
b/net/rxrpc/af_rxrpc.c
index 41671af6b33f91e9f77af4dc0c9d8f813247e4f3..2b5f89713e3654c407e1e7413df4e1d7e044f7d5 100644
(file)
--- a/
net/rxrpc/af_rxrpc.c
+++ b/
net/rxrpc/af_rxrpc.c
@@
-471,6
+471,7
@@
static int rxrpc_connect(struct socket *sock, struct sockaddr *addr,
switch (rx->sk.sk_state) {
case RXRPC_UNBOUND:
rx->sk.sk_state = RXRPC_CLIENT_UNBOUND;
+ break;
case RXRPC_CLIENT_UNBOUND:
case RXRPC_CLIENT_BOUND:
break;