diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 19:24:14 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-14 02:12:07 +0100 |
commit | 21ac58f495849844dfb4479cda1427bf42493262 (patch) | |
tree | 16012c934293b4a2f0c54730acc83a82cb1c4f7f /fs/cifs/sess.c | |
parent | Linux 5.10 (diff) | |
download | linux-21ac58f495849844dfb4479cda1427bf42493262.tar.xz linux-21ac58f495849844dfb4479cda1427bf42493262.zip |
cifs: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break/goto statements instead of
just letting the code fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r-- | fs/cifs/sess.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index de564368a887..6c2c42f8d893 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -812,6 +812,7 @@ cifs_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) return NTLMv2; if (global_secflags & CIFSSEC_MAY_NTLM) return NTLM; + break; default: break; } |