diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 40b5d656ab6c..fe8d70862d59 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -1200,17 +1200,11 @@ vport_create_failed_2: | |||
1200 | static int | 1200 | static int |
1201 | qla24xx_vport_delete(struct fc_vport *fc_vport) | 1201 | qla24xx_vport_delete(struct fc_vport *fc_vport) |
1202 | { | 1202 | { |
1203 | scsi_qla_host_t *ha = shost_priv(fc_vport->shost); | ||
1204 | scsi_qla_host_t *vha = fc_vport->dd_data; | 1203 | scsi_qla_host_t *vha = fc_vport->dd_data; |
1205 | 1204 | ||
1206 | qla24xx_disable_vp(vha); | 1205 | qla24xx_disable_vp(vha); |
1207 | qla24xx_deallocate_vp_id(vha); | 1206 | qla24xx_deallocate_vp_id(vha); |
1208 | 1207 | ||
1209 | mutex_lock(&ha->vport_lock); | ||
1210 | ha->cur_vport_count--; | ||
1211 | clear_bit(vha->vp_idx, ha->vp_idx_map); | ||
1212 | mutex_unlock(&ha->vport_lock); | ||
1213 | |||
1214 | kfree(vha->node_name); | 1208 | kfree(vha->node_name); |
1215 | kfree(vha->port_name); | 1209 | kfree(vha->port_name); |
1216 | 1210 | ||