From: Saurav Kashyap Date: Wed, 26 Feb 2014 09:15:16 +0000 (-0500) Subject: [SCSI] qla2xxx: Correct the port no assignment for ISP82XX. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43a9c38bf3867f4626107e17255db8c6a4bb16fc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [SCSI] qla2xxx: Correct the port no assignment for ISP82XX. Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap Signed-off-by: James Bottomley --- 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);