summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2017-06-28 14:58:56 +0900
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-06 23:11:49 -0700
commite5dc9a7055c98bcd7b03f9735d5f2ec2b7f0d897 (patch)
tree51af1054e51b38ec11902fd69d6630da096ffdd6 /drivers/target
parent402242c904432207515e3ccb4126ff0dcfba89ca (diff)
downloadop-kernel-dev-e5dc9a7055c98bcd7b03f9735d5f2ec2b7f0d897.zip
op-kernel-dev-e5dc9a7055c98bcd7b03f9735d5f2ec2b7f0d897.tar.gz
target: Use macro for WRITE_VERIFY_32 operation codes
Add WRITE_VERIFY_32 definition to scsi prototypes and use this macro definition isntead of the hard coded value. (Drop WRITE_VERIFY_16 that's already part of another patch - nab) Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index bbcef3b..1c7c57a 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -1226,7 +1226,7 @@ passthrough_parse_cdb(struct se_cmd *cmd,
switch (get_unaligned_be16(&cdb[8])) {
case READ_32:
case WRITE_32:
- case 0x0c: /* WRITE_VERIFY_32 */
+ case WRITE_VERIFY_32:
case XDWRITEREAD_32:
cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB;
break;
OpenPOWER on IntegriCloud