OSDN Git Service

scsi: qla4xxx: ql4_os: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 28 Nov 2018 04:33:43 +0000 (22:33 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 02:05:03 +0000 (21:05 -0500)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Notice that, in this particular case, I replaced "allow fall-through" with
a "fall through" annotation, which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_os.c

index 949e186..0a1940f 100644 (file)
@@ -2875,7 +2875,7 @@ static int qla4xxx_session_get_param(struct iscsi_cls_session *cls_sess,
                                                chap_tbl.secret_len);
                        }
                }
-               /* allow fall-through */
+               /* fall through */
        default:
                return iscsi_session_get_param(cls_sess, param, buf);
        }