target: Remove unused se_cmd.cmd_spdtl
authorRoland Dreier <roland@purestorage.com>
Thu, 16 Aug 2012 04:24:52 +0000 (21:24 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 21 Aug 2012 21:27:35 +0000 (14:27 -0700)
This was originally for helping fabrics to determine overflow/underflow
status, and has been superceeded by SCF_OVERFLOW_BIT + SCF_UNDERFLOW_BIT.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h

index ea9a3d2e4f5525a15873ec045c03bc45294dd1fd..4de3186dc44e99672d3666a24ec145e058183691 100644 (file)
@@ -1165,8 +1165,6 @@ int target_cmd_size_check(struct se_cmd *cmd, unsigned int size)
                        " 0x%02x\n", cmd->se_tfo->get_fabric_name(),
                                cmd->data_length, size, cmd->t_task_cdb[0]);
 
-               cmd->cmd_spdtl = size;
-
                if (cmd->data_direction == DMA_TO_DEVICE) {
                        pr_err("Rejecting underflow/overflow"
                                        " WRITE data\n");
index 128ce46fa48a799fa9b3b332a07d2babfee01925..015cea01ae39bedd1a1bf796e23a8f90f061e5e2 100644 (file)
@@ -503,8 +503,6 @@ struct se_cmd {
        u32                     se_ordered_id;
        /* Total size in bytes associated with command */
        u32                     data_length;
-       /* SCSI Presented Data Transfer Length */
-       u32                     cmd_spdtl;
        u32                     residual_count;
        u32                     orig_fe_lun;
        /* Persistent Reservation key */