Skip to contentSkip to conversation

lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_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 set but unused variables in lpfc_dev_loss_tmo_handler

Remove set but not used variable shost in lpfc_dev_loss_tmo_handler()

Fixes 52edb2caf675 ("scsi: lpfc: Remove ndlp when a PLOGI/ADISC/PRLI/REG_RPI ultimately fails")
---
 drivers/scsi/lpfc/lpfc_hbadisc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/scsi/lpfc/lpfc_hbadisc.c +0 -2
index 44eddddff0dc..2b6b5fc671fe 100644
@@ -244,14 +244,12 @@ lpfc_dev_loss_tmo_handler(struct lpfc_nodelist *ndlp)
 {
 	struct lpfc_vport *vport;
 	struct lpfc_hba   *phba;
-	struct Scsi_Host  *shost;
 	uint8_t *name;
 	int warn_on = 0;
 	int fcf_inuse = 0;
 	unsigned long iflags;
 
 	vport = ndlp->vport;
-	shost = lpfc_shost_from_vport(vport);
 	name = (uint8_t *)&ndlp->nlp_portname;
 	phba = vport->phba;
 
Signature · 1 line
2.26.2
#1 lore raw

James,

Quoted 1 line

Remove set but not used variable shost in lpfc_dev_loss_tmo_handler()

Applied to 5.11/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering