* [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler
@ 2020-11-19 20:33 James Smart
2020-11-20 3:21 ` Martin K. Petersen
2020-11-24 3:58 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: James Smart @ 2020-11-19 20:33 UTC (permalink / raw)
To: linux-scsi; +Cc: James Smart, kernel test robot
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
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(-)
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;
--
2.26.2
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4163 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler
2020-11-19 20:33 [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler James Smart
@ 2020-11-20 3:21 ` Martin K. Petersen
2020-11-24 3:58 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-11-20 3:21 UTC (permalink / raw)
To: James Smart; +Cc: linux-scsi, kernel test robot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler
2020-11-19 20:33 [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler James Smart
2020-11-20 3:21 ` Martin K. Petersen
@ 2020-11-24 3:58 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-11-24 3:58 UTC (permalink / raw)
To: linux-scsi, James Smart; +Cc: Martin K . Petersen, kernel test robot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-24 3:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 20:33 [PATCH] lpfc: Fix set but unused variables in lpfc_dev_loss_tmo_handler James Smart
2020-11-20 3:21 ` Martin K. Petersen
2020-11-24 3:58 ` Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.