Acked-by: Saurav Kashyap <saurav.kashyap@xxxxxxxxxx> >Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> >Cc: Chad Dupuis <chad.dupuis@xxxxxxxxxx> >Cc: Saurav Kashyap <saurav.kashyap@xxxxxxxxxx> >--- > drivers/scsi/qla2xxx/qla_os.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c >index 1d97626..2176cc9 100644 >--- a/drivers/scsi/qla2xxx/qla_os.c >+++ b/drivers/scsi/qla2xxx/qla_os.c >@@ -2980,14 +2980,12 @@ qla2x00_remove_one(struct pci_dev *pdev) > set_bit(UNLOADING, &base_vha->dpc_flags); > mutex_lock(&ha->vport_lock); > while (ha->cur_vport_count) { >- struct Scsi_Host *scsi_host; >- > spin_lock_irqsave(&ha->vport_slock, flags); > > BUG_ON(base_vha->list.next == &ha->vp_list); > /* This assumes first entry in ha->vp_list is always base vha */ > vha = list_first_entry(&base_vha->list, scsi_qla_host_t, list); >- scsi_host = scsi_host_get(vha->host); >+ scsi_host_get(vha->host); > > spin_unlock_irqrestore(&ha->vport_slock, flags); > mutex_unlock(&ha->vport_lock); >-- >1.7.10.4 > >
<<attachment: winmail.dat>>