Commit 82b76b44 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: target/core: Remove a set-but-not-used member variable from the XCOPY implementation

This patch does not change any functionality.

Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent fae43461
...@@ -389,7 +389,6 @@ static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd, ...@@ -389,7 +389,6 @@ static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd,
*/ */
struct xcopy_pt_cmd { struct xcopy_pt_cmd {
bool remote_port;
struct se_cmd se_cmd; struct se_cmd se_cmd;
struct completion xpt_passthrough_sem; struct completion xpt_passthrough_sem;
unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER];
...@@ -520,9 +519,7 @@ static void target_xcopy_setup_pt_port( ...@@ -520,9 +519,7 @@ static void target_xcopy_setup_pt_port(
* when CDB is received on local source port, and READs blocks to * when CDB is received on local source port, and READs blocks to
* WRITE on remote destination port. * WRITE on remote destination port.
*/ */
if (remote_port) { if (!remote_port) {
xpt_cmd->remote_port = remote_port;
} else {
pt_cmd->se_lun = ec_cmd->se_lun; pt_cmd->se_lun = ec_cmd->se_lun;
pt_cmd->se_dev = ec_cmd->se_dev; pt_cmd->se_dev = ec_cmd->se_dev;
...@@ -539,9 +536,7 @@ static void target_xcopy_setup_pt_port( ...@@ -539,9 +536,7 @@ static void target_xcopy_setup_pt_port(
* blocks from the remote source port to WRITE on local * blocks from the remote source port to WRITE on local
* destination port. * destination port.
*/ */
if (remote_port) { if (!remote_port) {
xpt_cmd->remote_port = remote_port;
} else {
pt_cmd->se_lun = ec_cmd->se_lun; pt_cmd->se_lun = ec_cmd->se_lun;
pt_cmd->se_dev = ec_cmd->se_dev; pt_cmd->se_dev = ec_cmd->se_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment