]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
target: Use macro for WRITE_VERIFY_32 operation codes
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 28 Jun 2017 05:58:56 +0000 (14:58 +0900)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:49 +0000 (23:11 -0700)
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>
drivers/target/target_core_device.c
include/scsi/scsi_proto.h

index bbcef3bc66c8e7f5bfef2d46e8cbdc0c3859670a..1c7c57a3c52e15e91c06eff331940be26ad6b6d5 100644 (file)
@@ -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;
index ce78ec8e367da1a34d75136339d9b7e2a088abdf..5e3fe037938e960ddb8fd3dc02cc03b06530320b 100644 (file)
 #define READ_32                      0x09
 #define VERIFY_32            0x0a
 #define WRITE_32             0x0b
+#define WRITE_VERIFY_32              0x0c
 #define WRITE_SAME_32        0x0d
 
 /* Values for T10/04-262r7 */