OSDN Git Service

scsi: bfa: bfa_ioc: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 28 Nov 2018 04:27:32 +0000 (22:27 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 02:47:47 +0000 (21:47 -0500)
commitf1b1dceedd7b046d04031a187aa1d51a62d8847c
tree4998e3d60a9e67d311904d78ac67c56c5ab8b730
parentd14e4cd45ac83edf96b249a222b02344889fb6f9
scsi: bfa: bfa_ioc: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Notice that, in this particular case, I replaced "!!! fall through !!!"
comment with "fall through" annotations, which is what GCC is expecting to
find.

Addresses-Coverity-ID: 146155 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Sudarsana Kalluru <Sudarsana.Kalluru@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_ioc.c