diff options
-rw-r--r-- | drivers/target/target_core_transport.c | 2 | ||||
-rw-r--r-- | include/target/target_core_base.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index ea9a3d2e4f55..4de3186dc44e 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1165,8 +1165,6 @@ int target_cmd_size_check(struct se_cmd *cmd, unsigned int size) | |||
1165 | " 0x%02x\n", cmd->se_tfo->get_fabric_name(), | 1165 | " 0x%02x\n", cmd->se_tfo->get_fabric_name(), |
1166 | cmd->data_length, size, cmd->t_task_cdb[0]); | 1166 | cmd->data_length, size, cmd->t_task_cdb[0]); |
1167 | 1167 | ||
1168 | cmd->cmd_spdtl = size; | ||
1169 | |||
1170 | if (cmd->data_direction == DMA_TO_DEVICE) { | 1168 | if (cmd->data_direction == DMA_TO_DEVICE) { |
1171 | pr_err("Rejecting underflow/overflow" | 1169 | pr_err("Rejecting underflow/overflow" |
1172 | " WRITE data\n"); | 1170 | " WRITE data\n"); |
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 128ce46fa48a..015cea01ae39 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -503,8 +503,6 @@ struct se_cmd { | |||
503 | u32 se_ordered_id; | 503 | u32 se_ordered_id; |
504 | /* Total size in bytes associated with command */ | 504 | /* Total size in bytes associated with command */ |
505 | u32 data_length; | 505 | u32 data_length; |
506 | /* SCSI Presented Data Transfer Length */ | ||
507 | u32 cmd_spdtl; | ||
508 | u32 residual_count; | 506 | u32 residual_count; |
509 | u32 orig_fe_lun; | 507 | u32 orig_fe_lun; |
510 | /* Persistent Reservation key */ | 508 | /* Persistent Reservation key */ |