diff options
author | Andy Grover <agrover@redhat.com> | 2012-04-03 18:51:24 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-04-14 20:40:38 -0400 |
commit | ebf1d95ca297a06fe760177b614646dcec06abef (patch) | |
tree | 6ee7e2c5934ff0e7cd7e30b1e02590d0b4145406 /drivers/target/iscsi/iscsi_target_tmr.c | |
parent | 065ca1e42ffd74dd03cf60f61cead35934c91ed5 (diff) |
target/iscsi: Eliminate iscsi_cmd.data_length
Redundant, just use iscsi_cmd->se_cmd.data_length once se_cmd is
initialized, or hdr->data_length before then.
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_tmr.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_tmr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/iscsi/iscsi_target_tmr.c b/drivers/target/iscsi/iscsi_target_tmr.c index 3f025fa10467..f4e640b51fd1 100644 --- a/drivers/target/iscsi/iscsi_target_tmr.c +++ b/drivers/target/iscsi/iscsi_target_tmr.c | |||
@@ -269,9 +269,9 @@ static int iscsit_task_reassign_complete_write( | |||
269 | offset = cmd->next_burst_len = cmd->write_data_done; | 269 | offset = cmd->next_burst_len = cmd->write_data_done; |
270 | 270 | ||
271 | if ((conn->sess->sess_ops->FirstBurstLength - offset) >= | 271 | if ((conn->sess->sess_ops->FirstBurstLength - offset) >= |
272 | cmd->data_length) { | 272 | cmd->se_cmd.data_length) { |
273 | no_build_r2ts = 1; | 273 | no_build_r2ts = 1; |
274 | length = (cmd->data_length - offset); | 274 | length = (cmd->se_cmd.data_length - offset); |
275 | } else | 275 | } else |
276 | length = (conn->sess->sess_ops->FirstBurstLength - offset); | 276 | length = (conn->sess->sess_ops->FirstBurstLength - offset); |
277 | 277 | ||