summaryrefslogtreecommitdiff
path: root/net/rds/tcp_connect.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 21:38:47 +0300
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-05-18 04:00:27 +0300
commit3754fa747dc0fb41cd1fd9a79bcb442dfe6802b3 (patch)
tree857a02d2e1ae99efb27bfb8f961cf8b41618ac19 /net/rds/tcp_connect.c
parent5af5a020ddd10afc6caff05b4c941c2b1c17bf1d (diff)
downloadlinux-3754fa747dc0fb41cd1fd9a79bcb442dfe6802b3.tar.xz
rds: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'net/rds/tcp_connect.c')
-rw-r--r--net/rds/tcp_connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/tcp_connect.c b/net/rds/tcp_connect.c
index 4e64598176b0..5461d77fff4f 100644
--- a/net/rds/tcp_connect.c
+++ b/net/rds/tcp_connect.c
@@ -78,6 +78,7 @@ void rds_tcp_state_change(struct sock *sk)
case TCP_CLOSE_WAIT:
case TCP_CLOSE:
rds_conn_path_drop(cp, false);
+ break;
default:
break;
}