Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler()

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

Link: https://lore.kernel.org/r/20201119203407.121913-1-james.smart@broadcom.com
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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

James Smart and committed by
Martin K. Petersen
6998ff4e 185d17e1

-2
-2
drivers/scsi/lpfc/lpfc_sli.c
··· 10700 10700 struct lpfc_nodelist *ndlp, 10701 10701 struct sli4_wcqe_xri_aborted *axri) 10702 10702 { 10703 - struct lpfc_vport *vport; 10704 10703 uint32_t ext_status = 0; 10705 10704 10706 10705 if (!ndlp) { ··· 10709 10710 return; 10710 10711 } 10711 10712 10712 - vport = ndlp->vport; 10713 10713 lpfc_printf_log(phba, KERN_WARNING, LOG_SLI, 10714 10714 "3116 Port generated FCP XRI ABORT event on " 10715 10715 "vpi %d rpi %d xri x%x status 0x%x parameter x%x\n",