mirror of https://gitee.com/openkylin/qemu.git
scsi: Document intentional fall through in scsi_req_length()
For clarity, and to hush up Coverity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6a86dec619
commit
c4ce4c4b1f
|
@ -938,6 +938,7 @@ static int scsi_req_length(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf)
|
|||
if (cmd->xfer == 0) {
|
||||
cmd->xfer = 256;
|
||||
}
|
||||
/* fall through */
|
||||
case WRITE_10:
|
||||
case WRITE_VERIFY_10:
|
||||
case WRITE_12:
|
||||
|
@ -952,6 +953,7 @@ static int scsi_req_length(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf)
|
|||
if (cmd->xfer == 0) {
|
||||
cmd->xfer = 256;
|
||||
}
|
||||
/* fall through */
|
||||
case READ_10:
|
||||
case RECOVER_BUFFERED_DATA:
|
||||
case READ_12:
|
||||
|
|
Loading…
Reference in New Issue