diff options
author | Bart Van Assche <bvanassche@acm.org> | 2013-06-25 11:27:30 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-07-08 12:35:09 -0400 |
commit | 6e97c9d5b85caaef9c2da7e410008df7e6d9d38a (patch) | |
tree | e3d22b17818b08afd0cb5c73497d9d43c6db92db /drivers/scsi | |
parent | b2ec76c5926438bda26b0e316246ae0e79bc810a (diff) |
[SCSI] qla2xxx: Remove an unused variable from qla2x00_remove_one().
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 6df5223888f8..3e21e9fc9d91 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2979,14 +2979,12 @@ qla2x00_remove_one(struct pci_dev *pdev) | |||
2979 | set_bit(UNLOADING, &base_vha->dpc_flags); | 2979 | set_bit(UNLOADING, &base_vha->dpc_flags); |
2980 | mutex_lock(&ha->vport_lock); | 2980 | mutex_lock(&ha->vport_lock); |
2981 | while (ha->cur_vport_count) { | 2981 | while (ha->cur_vport_count) { |
2982 | struct Scsi_Host *scsi_host; | ||
2983 | |||
2984 | spin_lock_irqsave(&ha->vport_slock, flags); | 2982 | spin_lock_irqsave(&ha->vport_slock, flags); |
2985 | 2983 | ||
2986 | BUG_ON(base_vha->list.next == &ha->vp_list); | 2984 | BUG_ON(base_vha->list.next == &ha->vp_list); |
2987 | /* This assumes first entry in ha->vp_list is always base vha */ | 2985 | /* This assumes first entry in ha->vp_list is always base vha */ |
2988 | vha = list_first_entry(&base_vha->list, scsi_qla_host_t, list); | 2986 | vha = list_first_entry(&base_vha->list, scsi_qla_host_t, list); |
2989 | scsi_host = scsi_host_get(vha->host); | 2987 | scsi_host_get(vha->host); |
2990 | 2988 | ||
2991 | spin_unlock_irqrestore(&ha->vport_slock, flags); | 2989 | spin_unlock_irqrestore(&ha->vport_slock, flags); |
2992 | mutex_unlock(&ha->vport_lock); | 2990 | mutex_unlock(&ha->vport_lock); |