target: use MAINTENANCE_IN and MAINTENANCE_OUT definitions in scsi.h
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 21 Feb 2011 07:49:26 +0000 (07:49 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:42 +0000 (09:37 +0000)
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c

index 4b9b7169bdd96957d9a6054ea68ec99c897a2381..188225161a7ee2c7c582215e41c96725d172f74c 100644 (file)
@@ -3325,7 +3325,7 @@ static int transport_generic_cmd_sequencer(
                        goto out_unsupported_cdb;
                }
                break;
-       case 0xa3:
+       case MAINTENANCE_IN:
                if (TRANSPORT(dev)->get_device_type(dev) != TYPE_ROM) {
                        /* MAINTENANCE_IN from SCC-2 */
                        /*
@@ -3395,7 +3395,7 @@ static int transport_generic_cmd_sequencer(
                size = READ_POSITION_LEN;
                cmd->se_cmd_flags |= SCF_SCSI_CONTROL_NONSG_IO_CDB;
                break;
-       case 0xa4:
+       case MAINTENANCE_OUT:
                if (TRANSPORT(dev)->get_device_type(dev) != TYPE_ROM) {
                        /* MAINTENANCE_OUT from SCC-2
                         *