linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler
@ 2020-11-19 20:34 James Smart
  2020-11-20  3:22 ` 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:34 UTC (permalink / raw)
  To: linux-scsi; +Cc: James Smart, kernel test robot

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

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")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
---
 drivers/scsi/lpfc/lpfc_sli.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 62218e41933e..95caad764fb7 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -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",
-- 
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 variable 'vport' set but not used in lpfc_sli4_abts_err_handler
  2020-11-19 20:34 [PATCH] lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler James Smart
@ 2020-11-20  3:22 ` 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:22 UTC (permalink / raw)
  To: James Smart; +Cc: linux-scsi, kernel test robot


James,

> Remove vport variable that is assigned but not used in
> lpfc_sli4_abts_err_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 variable 'vport' set but not used in lpfc_sli4_abts_err_handler
  2020-11-19 20:34 [PATCH] lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler James Smart
  2020-11-20  3:22 ` 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:34:07 -0800, James Smart wrote:

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

Applied to 5.11/scsi-queue, thanks!

[1/1] scsi: lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler()
      https://git.kernel.org/mkp/scsi/c/6998ff4e2161

-- 
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:34 [PATCH] lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler James Smart
2020-11-20  3:22 ` Martin K. Petersen
2020-11-24  3:58 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).