Skip to content

Commit

Permalink
scsi: imm: Remove superfluous breaks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liao Pingfang authored and Martin K. Petersen committed Jul 25, 2020
1 parent 8f38f8e commit b54dc46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/scsi/imm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit b54dc46

Please sign in to comment.