Commit b54dc46c authored by Liao Pingfang's avatar Liao Pingfang Committed by Martin K. Petersen

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.cnSigned-off-by: default avatarLiao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: default avatarYi Wang <wang.yi59@zte.com.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8f38f8e0
...@@ -903,7 +903,6 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) ...@@ -903,7 +903,6 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd)
w_ctr(ppb, 0x4); w_ctr(ppb, 0x4);
} }
return 0; /* Finished */ return 0; /* Finished */
break;
default: default:
printk("imm: Invalid scsi phase\n"); printk("imm: Invalid scsi phase\n");
...@@ -969,10 +968,8 @@ static int imm_abort(struct scsi_cmnd *cmd) ...@@ -969,10 +968,8 @@ static int imm_abort(struct scsi_cmnd *cmd)
case 1: /* Have not connected to interface */ case 1: /* Have not connected to interface */
dev->cur_cmd = NULL; /* Forget the problem */ dev->cur_cmd = NULL; /* Forget the problem */
return SUCCESS; return SUCCESS;
break;
default: /* SCSI command sent, can not abort */ default: /* SCSI command sent, can not abort */
return FAILED; return FAILED;
break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment