lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler
Subsystems (2)
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")
Reported-by kernel test robot <[email protected]>
Signed-off-by James Smart <[email protected]>
--- drivers/scsi/lpfc/lpfc_hbadisc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/lpfc/lpfc_hbadisc.c +0 -2
@@ -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
Martin K. Petersen
AppliedJames,
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
Martin K. Petersen
AppliedQuoted 1 line · James Smart
Remove set but not used variable shost in
lpfc_dev_loss_tmo_handler()
Applied to 5.11/scsi-queue, thanks!
[1/1] scsi: lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler()
https://git.kernel.org/mkp/scsi/c/09b15e35071d
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering