summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/imm.c
diff options
context:
space:
mode:
authorLiao Pingfang <liao.pingfang@zte.com.cn>2020-07-14 12:59:27 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-25 04:09:55 +0200
commitb54dc46cbe7123e68e7cafe2ef2f5fca41603b4e (patch)
tree1c9d24d33501322d1ee8672ce25d8e2aeeea200e /drivers/scsi/imm.c
parentscsi: block: pm: Simplify resume handling (diff)
downloadlinux-b54dc46cbe7123e68e7cafe2ef2f5fca41603b4e.tar.xz
linux-b54dc46cbe7123e68e7cafe2ef2f5fca41603b4e.zip
scsi: imm: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them. Link: https://lore.kernel.org/r/1594724367-11593-1-git-send-email-wang.yi59@zte.com.cn Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/imm.c')
-rw-r--r--drivers/scsi/imm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 2519fb7aee51..1459b1467027 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -903,7 +903,6 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd)
w_ctr(ppb, 0x4);
}
return 0; /* Finished */
- break;
default:
printk("imm: Invalid scsi phase\n");
@@ -969,10 +968,8 @@ static int imm_abort(struct scsi_cmnd *cmd)
case 1: /* Have not connected to interface */
dev->cur_cmd = NULL; /* Forget the problem */
return SUCCESS;
- break;
default: /* SCSI command sent, can not abort */
return FAILED;
- break;
}
}