mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Nicholas Bellinger <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
fae43461f8
commit
82b76b4476
1 changed files with 2 additions and 7 deletions
|
|
@ -389,7 +389,6 @@ out:
|
|||
*/
|
||||
|
||||
struct xcopy_pt_cmd {
|
||||
bool remote_port;
|
||||
struct se_cmd se_cmd;
|
||||
struct completion xpt_passthrough_sem;
|
||||
unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER];
|
||||
|
|
@ -520,9 +519,7 @@ static void target_xcopy_setup_pt_port(
|
|||
* when CDB is received on local source port, and READs blocks to
|
||||
* WRITE on remote destination port.
|
||||
*/
|
||||
if (remote_port) {
|
||||
xpt_cmd->remote_port = remote_port;
|
||||
} else {
|
||||
if (!remote_port) {
|
||||
pt_cmd->se_lun = ec_cmd->se_lun;
|
||||
pt_cmd->se_dev = ec_cmd->se_dev;
|
||||
|
||||
|
|
@ -539,9 +536,7 @@ static void target_xcopy_setup_pt_port(
|
|||
* blocks from the remote source port to WRITE on local
|
||||
* destination port.
|
||||
*/
|
||||
if (remote_port) {
|
||||
xpt_cmd->remote_port = remote_port;
|
||||
} else {
|
||||
if (!remote_port) {
|
||||
pt_cmd->se_lun = ec_cmd->se_lun;
|
||||
pt_cmd->se_dev = ec_cmd->se_dev;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue