Skip to content

Commit

Permalink
scsi: ppa: 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/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>
  • Loading branch information
Liao Pingfang authored and Martin K. Petersen committed Jul 25, 2020
1 parent b54dc46 commit 6671eeb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/scsi/ppa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6671eeb

Please sign in to comment.