diff options
author | Seokmann Ju <seokmann.ju@qlogic.com> | 2008-07-10 19:55:51 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-26 15:14:37 -0400 |
commit | 711c1d916be083a5bf4fbc8e66201e7e9f8b9334 (patch) | |
tree | 30ef763b5fae1f9bc1136757d3c895cf1d959aa1 /drivers/scsi/qla2xxx/qla_os.c | |
parent | 032d8dd739eccbb39c78c901beece70062d1820d (diff) |
[SCSI] qla2xxx: Cleanup NPIV related functions
Removed repeated or unnecessary operations during vport
creation/deletion.
Signed-off-by: Shyam Sundar <shyam.sundar@qlogic.com>
Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 047ee644aa91..e98d502d649e 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -27,7 +27,6 @@ char qla2x00_version_str[40]; | |||
27 | */ | 27 | */ |
28 | static struct kmem_cache *srb_cachep; | 28 | static struct kmem_cache *srb_cachep; |
29 | 29 | ||
30 | int num_hosts; | ||
31 | int ql2xlogintimeout = 20; | 30 | int ql2xlogintimeout = 20; |
32 | module_param(ql2xlogintimeout, int, S_IRUGO|S_IRUSR); | 31 | module_param(ql2xlogintimeout, int, S_IRUGO|S_IRUSR); |
33 | MODULE_PARM_DESC(ql2xlogintimeout, | 32 | MODULE_PARM_DESC(ql2xlogintimeout, |
@@ -1663,9 +1662,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1663 | } | 1662 | } |
1664 | host->can_queue = ha->request_q_length + 128; | 1663 | host->can_queue = ha->request_q_length + 128; |
1665 | 1664 | ||
1666 | /* load the F/W, read paramaters, and init the H/W */ | ||
1667 | ha->instance = num_hosts; | ||
1668 | |||
1669 | mutex_init(&ha->vport_lock); | 1665 | mutex_init(&ha->vport_lock); |
1670 | init_completion(&ha->mbx_cmd_comp); | 1666 | init_completion(&ha->mbx_cmd_comp); |
1671 | complete(&ha->mbx_cmd_comp); | 1667 | complete(&ha->mbx_cmd_comp); |
@@ -1713,7 +1709,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1713 | 1709 | ||
1714 | host->this_id = 255; | 1710 | host->this_id = 255; |
1715 | host->cmd_per_lun = 3; | 1711 | host->cmd_per_lun = 3; |
1716 | host->unique_id = ha->instance; | 1712 | host->unique_id = host->host_no; |
1717 | host->max_cmd_len = MAX_CMDSZ; | 1713 | host->max_cmd_len = MAX_CMDSZ; |
1718 | host->max_channel = MAX_BUSES - 1; | 1714 | host->max_channel = MAX_BUSES - 1; |
1719 | host->max_lun = MAX_LUNS; | 1715 | host->max_lun = MAX_LUNS; |
@@ -1734,8 +1730,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1734 | ha->flags.init_done = 1; | 1730 | ha->flags.init_done = 1; |
1735 | ha->flags.online = 1; | 1731 | ha->flags.online = 1; |
1736 | 1732 | ||
1737 | num_hosts++; | ||
1738 | |||
1739 | ret = scsi_add_host(host, &pdev->dev); | 1733 | ret = scsi_add_host(host, &pdev->dev); |
1740 | if (ret) | 1734 | if (ret) |
1741 | goto probe_failed; | 1735 | goto probe_failed; |