From: Gustavo A. R. Silva Date: Tue, 16 Oct 2018 09:12:23 +0000 (+0200) Subject: scsi: ips: fix missing break in switch X-Git-Tag: v4.9.204~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=975926c7eab498abb4cf2d4ea10a01007af5622f;p=platform%2Fkernel%2Flinux-amlogic.git scsi: ips: fix missing break in switch [ Upstream commit 5d25ff7a544889bc4b749fda31778d6a18dddbcb ] Add missing break statement in order to prevent the code from falling through to case TEST_UNIT_READY. Addresses-Coverity-ID: 1357338 ("Missing break in switch") Suggested-by: Martin K. Petersen Signed-off-by: Gustavo A. R. Silva Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index 02cb76f..6bbf294 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -3500,6 +3500,7 @@ ips_send_cmd(ips_ha_t * ha, ips_scb_t * scb) case START_STOP: scb->scsi_cmd->result = DID_OK << 16; + break; case TEST_UNIT_READY: case INQUIRY: