summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ppa.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-11-26 14:06:48 -0600
committerGustavo A. R. Silva <gustavo@embeddedor.com>2019-04-08 18:39:04 -0500
commit2d5ffc2611f45de5ada90047c5d8723a3b33db38 (patch)
treea255f96540958161c1d4cfebbc2eebd6b221975f /drivers/scsi/ppa.c
parent6bb0497834d4440be1802bff417bc5b91d060b91 (diff)
downloadlinux-2d5ffc2611f45de5ada90047c5d8723a3b33db38.tar.gz
linux-2d5ffc2611f45de5ada90047c5d8723a3b33db38.tar.bz2
linux-2d5ffc2611f45de5ada90047c5d8723a3b33db38.zip
scsi: ppa: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 114988 ("Missing break in switch") Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'drivers/scsi/ppa.c')
-rw-r--r--drivers/scsi/ppa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c
index c182b5458f98..35213082e933 100644
--- a/drivers/scsi/ppa.c
+++ b/drivers/scsi/ppa.c
@@ -717,6 +717,7 @@ static int ppa_engine(ppa_struct *dev, struct scsi_cmnd *cmd)
}
cmd->SCp.phase++;
}
+ /* fall through */
case 2: /* Phase 2 - We are now talking to the scsi bus */
if (!ppa_select(dev, scmd_id(cmd))) {