diff mbox series

scsi: imm: Remove superfluous breaks

Message ID 1594724367-11593-1-git-send-email-wang.yi59@zte.com.cn (mailing list archive)
State Mainlined
Commit b54dc46cbe7123e68e7cafe2ef2f5fca41603b4e
Headers show
Series scsi: imm: Remove superfluous breaks | expand

Commit Message

Yi Wang July 14, 2020, 10:59 a.m. UTC
From: Liao Pingfang <liao.pingfang@zte.com.cn>

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>
---
 drivers/scsi/imm.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Martin K. Petersen July 25, 2020, 2:50 a.m. UTC | #1
On Tue, 14 Jul 2020 18:59:27 +0800, Yi Wang wrote:

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

Applied to 5.9/scsi-queue, thanks!

[1/1] scsi: imm: Remove superfluous breaks
      https://git.kernel.org/mkp/scsi/c/b54dc46cbe71
diff mbox series

Patch

diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 2519fb7..1459b14 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;
 	}
 }