aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChi Minghao <[email protected]>2021-08-31 04:40:58 -0700
committerMartin K. Petersen <[email protected]>2021-09-13 22:15:42 -0400
commit5d1e15108b8d058d537f19cdef4170d2ae4eed08 (patch)
treed9fed6b86bb1d2a0a17268a51e5e3b203badd5f0
parent37e384095f20cca728500fe5344cd308aa6fd7ff (diff)
scsi: lpfc: Remove unneeded variable
Fix the following coccicheck REVIEW: ./drivers/scsi/lpfc/lpfc_scsi.c:1498:9-12 REVIEW Unneeded variable Link: https://lore.kernel.org/r/[email protected] Reported-by: Zeal Robot <[email protected]> Reviewed-by: James Smart <[email protected]> Signed-off-by: Chi Minghao <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 63d8ac9f68a7..befdf864c43b 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -1495,7 +1495,6 @@ static int
lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
uint8_t *txop, uint8_t *rxop)
{
- uint8_t ret = 0;
if (sc->prot_flags & SCSI_PROT_IP_CHECKSUM) {
switch (scsi_get_prot_op(sc)) {
@@ -1548,7 +1547,7 @@ lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
}
}
- return ret;
+ return 0;
}
#endif