[SCSI] qla2xxx: Replace constant value for IOCTL IOCB abort execution status with...
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 26 Feb 2014 09:14:58 +0000 (04:14 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:17:48 +0000 (10:17 -0700)
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_mr.c
drivers/scsi/qla2xxx/qla_mr.h

index 6ca4807ffb9219e637d71f48369074404d71fb0f..7c7849d54a099194fb2a8d1e3c0e29a6419d887a 100644 (file)
@@ -2017,7 +2017,8 @@ qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
                memcpy(vha->hw->gid_list, pinfo, QLAFX00_TGT_NODE_LIST_SIZE);
        } else if (fx_type == FXDISC_ABORT_IOCTL)
                fdisc->u.fxiocb.result =
-                   (fdisc->u.fxiocb.result == cpu_to_le32(0x68)) ?
+                   (fdisc->u.fxiocb.result ==
+                       cpu_to_le32(QLAFX00_IOCTL_ICOB_ABORT_SUCCESS)) ?
                    cpu_to_le32(QLA_SUCCESS) : cpu_to_le32(QLA_FUNCTION_FAILED);
 
        rval = le32_to_cpu(fdisc->u.fxiocb.result);
index 6cd7072cc0fff57b8c43369a81d70f968515b0ae..5f3ed8b48a51d02e83e326844ab21d65d5edde16 100644 (file)
@@ -548,4 +548,7 @@ struct mr_data_fx00 {
 /* Max conncurrent IOs that can be queued */
 #define QLAFX00_MAX_CANQUEUE           1024
 
+/* IOCTL IOCB abort success */
+#define QLAFX00_IOCTL_ICOB_ABORT_SUCCESS       0x68
+
 #endif