Message ID | 20201119203353.121866-1-james.smart@broadcom.com |
---|---|
State | New |
Headers | show |
Series | lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler | expand |
James,
> Remove set but not used variable shost in lpfc_dev_loss_tmo_handler()
Applied to 5.11/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
On Thu, 19 Nov 2020 12:33:53 -0800, James Smart wrote:
> 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
--
Martin K. Petersen Oracle Linux Engineering
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 44eddddff0dc..2b6b5fc671fe 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -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;
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 <lkp@intel.com> Signed-off-by: James Smart <james.smart@broadcom.com> --- drivers/scsi/lpfc/lpfc_hbadisc.c | 2 -- 1 file changed, 2 deletions(-)