diff options
author | James Smart <james.smart@broadcom.com> | 2020-11-19 12:33:40 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-19 22:20:26 -0500 |
commit | 4a119d8a4c6058d445db89c22db87ef8316c4286 (patch) | |
tree | 0517bab3e0c5a00a6eb0dbed440d1c26666dac50 /drivers/scsi/lpfc/lpfc_init.c | |
parent | scsi: lpfc: Fix missing prototype warning for lpfc_fdmi_vendor_attr_mi() (diff) | |
download | linux-dev-4a119d8a4c6058d445db89c22db87ef8316c4286.tar.xz linux-dev-4a119d8a4c6058d445db89c22db87ef8316c4286.zip |
scsi: lpfc: Fix set but not used warnings from Rework remote port lock handling
Remove local variables that are set but not used.
Link: https://lore.kernel.org/r/20201119203340.121819-1-james.smart@broadcom.com
Fixes: c6adba150191 ("scsi: lpfc: Rework remote port lock handling")
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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index f4de75b2f64f..f4cf60f125f5 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -5644,7 +5644,6 @@ lpfc_sli4_async_fip_evt(struct lpfc_hba *phba, int rc; struct lpfc_vport *vport; struct lpfc_nodelist *ndlp; - struct Scsi_Host *shost; int active_vlink_present; struct lpfc_vport **vports; int i; @@ -5825,7 +5824,6 @@ lpfc_sli4_async_fip_evt(struct lpfc_hba *phba, */ mod_timer(&ndlp->nlp_delayfunc, jiffies + msecs_to_jiffies(1000)); - shost = lpfc_shost_from_vport(vport); spin_lock_irq(&ndlp->lock); ndlp->nlp_flag |= NLP_DELAY_TMO; spin_unlock_irq(&ndlp->lock); |