[SCSI] qla2xxx: Remove an unused variable from qla2x00_remove_one().
authorBart Van Assche <bvanassche@acm.org>
Tue, 25 Jun 2013 15:27:30 +0000 (11:27 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 8 Jul 2013 16:35:09 +0000 (17:35 +0100)
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_os.c

index 6df5223888f85085a76dea7156103c24cb6314d8..3e21e9fc9d912f90d4129a6709e4e655ffc96e3c 100644 (file)
@@ -2979,14 +2979,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);