[SCSI] qla2xxx: Correct the port no assignment for ISP82XX.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Wed, 26 Feb 2014 09:15:16 +0000 (04:15 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:18:52 +0000 (10:18 -0700)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_os.c

index 61d42afe168333da2aaef8d77a8ff5aa33c8dc80..7b54e0acaac7f84f345f11b64050a5ee5dc6e551 100644 (file)
@@ -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);