OSDN Git Service

cifs: suppress some implicit-fallthrough warnings
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 26 Nov 2018 23:01:51 +0000 (10:01 +1100)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Dec 2018 04:41:11 +0000 (22:41 -0600)
To avoid the warning:

     warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/sess.c

index f0be8ed..e4a924b 100644 (file)
@@ -1828,7 +1828,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
                                vol->password = NULL;
                                break;
                        }
-                       /* Yes it is. Drop down to Opt_pass below.*/
+                       /* Fallthrough - to Opt_pass below.*/
                case Opt_pass:
                        /* Obtain the value string */
                        value = strchr(data, '=');
index aa23c00..7fa447a 100644 (file)
@@ -534,9 +534,9 @@ cifs_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested)
                        if (global_secflags & CIFSSEC_MAY_NTLM)
                                return NTLM;
                default:
-                       /* Fallthrough to attempt LANMAN authentication next */
                        break;
                }
+               /* Fallthrough - to attempt LANMAN authentication next */
        case CIFS_NEGFLAVOR_LANMAN:
                switch (requested) {
                case LANMAN: