Skip to contentSkip to conversation

scsi: Remove superfluous breaks

PATCH In review Yi Wang 2 participants 2 messages Jul 13, 2020 – Jul 14, 2020

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 scsi: Remove superfluous breaks

From: Liao Pingfang <[email protected]>

Remove superfluous breaks, as there is a "return" before them.

---
 scsi/utils.c | 4 ----
 1 file changed, 4 deletions(-)
scsi/utils.c +0 -4
index c50e81f..b37c283 100644
@@ -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;
     }
Signature · 1 line
2.9.5