aboutsummaryrefslogtreecommitdiff
path: root/scsi
diff options
context:
space:
mode:
authorLiao Pingfang <liao.pingfang@zte.com.cn>2020-07-13 17:04:22 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-09-01 08:35:10 +0200
commit2e8f68eaef2cf0cf98c49f078a64c7dd12f86508 (patch)
tree88916ef1a6bdb7aca303ea6229b772b87f447733 /scsi
parent3ca5ab7cd220927af4b2c3fb9cf3b201a7a8b509 (diff)
downloadqemu-2e8f68eaef2cf0cf98c49f078a64c7dd12f86508.zip
qemu-2e8f68eaef2cf0cf98c49f078a64c7dd12f86508.tar.gz
qemu-2e8f68eaef2cf0cf98c49f078a64c7dd12f86508.tar.bz2
scsi: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <1594631062-36341-1-git-send-email-wang.yi59@zte.com.cn> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scsi')
-rw-r--r--scsi/utils.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/scsi/utils.c b/scsi/utils.c
index c50e81f..b37c283 100644
--- a/scsi/utils.c
+++ b/scsi/utils.c
@@ -32,17 +32,13 @@ uint32_t scsi_cdb_xfer(uint8_t *buf)
switch (buf[0] >> 5) {
case 0:
return buf[4];
- break;
case 1:
case 2:
return lduw_be_p(&buf[7]);
- break;
case 4:
return ldl_be_p(&buf[10]) & 0xffffffffULL;
- break;
case 5:
return ldl_be_p(&buf[6]) & 0xffffffffULL;
- break;
default:
return -1;
}