summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-02-21 08:49:26 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-22 11:37:42 +0200
commite434f1f182674d775c52869d49f714a2614d1c66 (patch)
treec29b66edd04941a0837fa7eecfed5248fbd61adb /drivers/target
parenttarget: Check LUN numbers in transport_get_lun_for_[cmd,tmr] (diff)
downloadlinux-e434f1f182674d775c52869d49f714a2614d1c66.tar.xz
linux-e434f1f182674d775c52869d49f714a2614d1c66.zip
target: use MAINTENANCE_IN and MAINTENANCE_OUT definitions in scsi.h
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 4b9b7169bdd9..188225161a7e 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -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
*