Skip to content

Commit

Permalink
[SCSI] qla2xxx: Fix to make conditional decision based on port number.
Browse files Browse the repository at this point in the history
Signed-off-by: Giridhar Malavali <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Sarang Radke authored and James Bottomley committed Apr 11, 2010
1 parent d545908 commit bfdaa76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/qla2xxx/qla_sup.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,11 @@ qla2xxx_get_flt_info(scsi_qla_host_t *vha, uint32_t flt_addr)
ha->flt_region_gold_fw = start;
break;
case FLT_REG_FCP_PRIO_0:
if (!(PCI_FUNC(ha->pdev->devfn) & 1))
if (ha->flags.port0)
ha->flt_region_fcp_prio = start;
break;
case FLT_REG_FCP_PRIO_1:
if (PCI_FUNC(ha->pdev->devfn) & 1)
if (!ha->flags.port0)
ha->flt_region_fcp_prio = start;
break;
}
Expand Down

0 comments on commit bfdaa76

Please sign in to comment.