Skip to contentSkip to conversation

target/core: Remove an unused data member from struct xcopy_pt_cmd

PATCH Applied Bart Van Assche 1 participant 1 message Oct 15, 2018 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 target/core: Remove an unused data member from struct xcopy_pt_cmd

A value is assigned to the xcopy_op member of struct xcopy_pt_cmd but that value is never used. Hence remove the xcopy_op member.

Cc Nicholas Bellinger <[email protected]>
Cc Mike Christie <[email protected]>
Cc Hannes Reinecke <[email protected]>
---
 drivers/target/target_core_xcopy.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/target/target_core_xcopy.c +0 -3
index 2718a933c0c6..70adcfdca8d1 100644
@@ -391,7 +391,6 @@ static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd,
 struct xcopy_pt_cmd {
 	bool remote_port;
 	struct se_cmd se_cmd;
-	struct xcopy_op *xcopy_op;
 	struct completion xpt_passthrough_sem;
 	unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER];
 };
@@ -596,8 +595,6 @@ static int target_xcopy_setup_pt_cmd(
 	 * X-COPY PUSH or X-COPY PULL based upon where the CDB was received.
 	 */
 	target_xcopy_init_pt_lun(se_dev, cmd, remote_port);
-
-	xpt_cmd->xcopy_op = xop;
 	target_xcopy_setup_pt_port(xpt_cmd, xop, remote_port);
 
 	cmd->tag = 0;
Signature · 1 line
2.19.0.605.g01d371f741-goog