]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpi3mr: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 4 Jun 2021 02:35:30 +0000 (21:35 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Jun 2021 02:23:46 +0000 (22:23 -0400)
commit5d6493f643b74609d5a54d6238f034489bba700e
tree81395d0aaf4629e84f2667d516c9ba020ecc7893
parentcd6d2d22f99681891ae5fbf564b10642819442ad
scsi: mpi3mr: Fix fall-through warning for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
fall-through warning by explicitly adding a break statement instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Link: https://lore.kernel.org/r/20210604023530.GA180997@embeddedor
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c