diff options
author | Liao Pingfang <liao.pingfang@zte.com.cn> | 2020-07-14 18:59:31 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-07-24 22:09:55 -0400 |
commit | 6671eebd672c50814fa09d23ba9cc117506aa67c (patch) | |
tree | 0048df2e13350b408943f7a7c95a924c38395cdc /drivers/scsi/ppa.c | |
parent | b54dc46cbe7123e68e7cafe2ef2f5fca41603b4e (diff) | |
download | linux-6671eebd672c50814fa09d23ba9cc117506aa67c.tar.gz linux-6671eebd672c50814fa09d23ba9cc117506aa67c.tar.bz2 linux-6671eebd672c50814fa09d23ba9cc117506aa67c.zip |
scsi: ppa: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them.
Link: https://lore.kernel.org/r/1594724371-11677-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/ppa.c')
-rw-r--r-- | drivers/scsi/ppa.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index a406cc825426..0ae800c5b739 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c @@ -779,7 +779,6 @@ static int ppa_engine(ppa_struct *dev, struct scsi_cmnd *cmd) (DID_OK << 16) + (h << 8) + (l & STATUS_MASK); } return 0; /* Finished */ - break; default: printk(KERN_ERR "ppa: Invalid scsi phase\n"); @@ -847,10 +846,8 @@ static int ppa_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; } } |