From 43a9c38bf3867f4626107e17255db8c6a4bb16fc Mon Sep 17 00:00:00 2001 From: Saurav Kashyap Date: Wed, 26 Feb 2014 04:15:16 -0500 Subject: [PATCH] [SCSI] qla2xxx: Correct the port no assignment for ISP82XX. Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap Signed-off-by: James Bottomley --- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 61d42afe1683..7b54e0acaac7 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -2271,7 +2271,7 @@ qla2x00_set_isp_flags(struct qla_hw_data *ha) } if (IS_QLA82XX(ha)) - ha->port_no = !(ha->portnum & 1); + ha->port_no = ha->portnum & 1; else { /* Get adapter physical port no from interrupt pin register. */ pci_read_config_byte(ha->pdev, PCI_INTERRUPT_PIN, &ha->port_no); -- 2.20.1