diff options
author | Sarang Radke <sarang.radke@qlogic.com> | 2010-03-19 20:04:01 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 10:45:52 -0400 |
commit | bfdaa761d3f9663a4721f572e093dd2894cedaf9 (patch) | |
tree | 3b8c06d9c9e48daf89245d93cb1fa6ee396307fb /drivers/scsi | |
parent | d5459083af5b6e01796797edd12555ab586c6092 (diff) |
[SCSI] qla2xxx: Fix to make conditional decision based on port number.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_sup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index f32a4b03296..e74552c8c5e 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c | |||
@@ -739,11 +739,11 @@ qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr) | |||
739 | ha->flt_region_gold_fw = start; | 739 | ha->flt_region_gold_fw = start; |
740 | break; | 740 | break; |
741 | case FLT_REG_FCP_PRIO_0: | 741 | case FLT_REG_FCP_PRIO_0: |
742 | if (!(PCI_FUNC(ha->pdev->devfn) & 1)) | 742 | if (ha->flags.port0) |
743 | ha->flt_region_fcp_prio = start; | 743 | ha->flt_region_fcp_prio = start; |
744 | break; | 744 | break; |
745 | case FLT_REG_FCP_PRIO_1: | 745 | case FLT_REG_FCP_PRIO_1: |
746 | if (PCI_FUNC(ha->pdev->devfn) & 1) | 746 | if (!ha->flags.port0) |
747 | ha->flt_region_fcp_prio = start; | 747 | ha->flt_region_fcp_prio = start; |
748 | break; | 748 | break; |
749 | } | 749 | } |