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>
This commit is contained in:

committed by
Nicholas Bellinger

parent
065ca1e42f
commit
ebf1d95ca2
@@ -269,9 +269,9 @@ static int iscsit_task_reassign_complete_write(
|
||||
offset = cmd->next_burst_len = cmd->write_data_done;
|
||||
|
||||
if ((conn->sess->sess_ops->FirstBurstLength - offset) >=
|
||||
cmd->data_length) {
|
||||
cmd->se_cmd.data_length) {
|
||||
no_build_r2ts = 1;
|
||||
length = (cmd->data_length - offset);
|
||||
length = (cmd->se_cmd.data_length - offset);
|
||||
} else
|
||||
length = (conn->sess->sess_ops->FirstBurstLength - offset);
|
||||
|
||||
|
Reference in New Issue
Block a user