aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r--drivers/target/target_core_device.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index 04bf2acd3800..2d19f0e332b0 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -1075,27 +1075,6 @@ passthrough_parse_cdb(struct se_cmd *cmd,
1075 unsigned int size; 1075 unsigned int size;
1076 1076
1077 /* 1077 /*
1078 * Clear a lun set in the cdb if the initiator talking to use spoke
1079 * and old standards version, as we can't assume the underlying device
1080 * won't choke up on it.
1081 */
1082 switch (cdb[0]) {
1083 case READ_10: /* SBC - RDProtect */
1084 case READ_12: /* SBC - RDProtect */
1085 case READ_16: /* SBC - RDProtect */
1086 case SEND_DIAGNOSTIC: /* SPC - SELF-TEST Code */
1087 case VERIFY: /* SBC - VRProtect */
1088 case VERIFY_16: /* SBC - VRProtect */
1089 case WRITE_VERIFY: /* SBC - VRProtect */
1090 case WRITE_VERIFY_12: /* SBC - VRProtect */
1091 case MAINTENANCE_IN: /* SPC - Parameter Data Format for SA RTPG */
1092 break;
1093 default:
1094 cdb[1] &= 0x1f; /* clear logical unit number */
1095 break;
1096 }
1097
1098 /*
1099 * For REPORT LUNS we always need to emulate the response, for everything 1078 * For REPORT LUNS we always need to emulate the response, for everything
1100 * else, pass it up. 1079 * else, pass it up.
1101 */ 1080 */