summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hptiop.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-10-19 16:23:33 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-10-26 23:23:24 +0100
commit170b7d2de29e6239b8dbc63a88de1fa9789b0d8d (patch)
tree244aaf921362791ecb1def02ac87fc9280450bf0 /drivers/scsi/hptiop.c
parentscsi: fc: Update documentation of sysfs nodes for FPIN stats (diff)
downloadlinux-170b7d2de29e6239b8dbc63a88de1fa9789b0d8d.tar.xz
linux-170b7d2de29e6239b8dbc63a88de1fa9789b0d8d.zip
scsi: Remove unneeded break statements
A break is not needed if it is preceded by a return or goto. Link: https://lore.kernel.org/r/20201019142333.16584-1-trix@redhat.com Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hptiop.c')
-rw-r--r--drivers/scsi/hptiop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c
index 6a2561f26e38..db4c7a7ff4dd 100644
--- a/drivers/scsi/hptiop.c
+++ b/drivers/scsi/hptiop.c
@@ -758,7 +758,6 @@ static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag,
scp->result = SAM_STAT_CHECK_CONDITION;
memcpy(scp->sense_buffer, &req->sg_list, SCSI_SENSE_BUFFERSIZE);
goto skip_resid;
- break;
default:
scp->result = DRIVER_INVALID << 24 | DID_ABORT << 16;