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>
This commit is contained in:
parent
8f38f8e0a3
commit
b54dc46cbe
|
@ -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)
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue