Skip to contentSkip to conversation

lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler

PATCH Applied James Smart 2 participants 3 messages Nov 19, 2020 – Nov 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler

Remove vport variable that is assigned but not used in lpfc_sli4_abts_err_handler().

Fixes e7dab164a9aa ("scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi")
---
 drivers/scsi/lpfc/lpfc_sli.c | 2 --
 1 file changed, 2 deletions(-)
drivers/scsi/lpfc/lpfc_sli.c +0 -2
index 62218e41933e..95caad764fb7 100644
@@ -10700,7 +10700,6 @@ lpfc_sli4_abts_err_handler(struct lpfc_hba *phba,
 			   struct lpfc_nodelist *ndlp,
 			   struct sli4_wcqe_xri_aborted *axri)
 {
-	struct lpfc_vport *vport;
 	uint32_t ext_status = 0;
 
 	if (!ndlp) {
@@ -10710,7 +10709,6 @@ lpfc_sli4_abts_err_handler(struct lpfc_hba *phba,
 		return;
 	}
 
-	vport = ndlp->vport;
 	lpfc_printf_log(phba, KERN_WARNING, LOG_SLI,
 			"3116 Port generated FCP XRI ABORT event on "
 			"vpi %d rpi %d xri x%x status 0x%x parameter x%x\n",
Signature · 1 line
2.26.2
#1 lore raw

James,

Quoted 2 lines

Remove vport variable that is assigned but not used in lpfc_sli4_abts_err_handler().

Applied to 5.11/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering