diff options
Diffstat (limited to 'drivers/target/target_core_xcopy.c')
-rw-r--r-- | drivers/target/target_core_xcopy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 669c536fd959..e9186cdf35e9 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c | |||
@@ -70,7 +70,7 @@ static int target_xcopy_locate_se_dev_e4(struct se_cmd *se_cmd, struct xcopy_op | |||
70 | unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN], *dev_wwn; | 70 | unsigned char tmp_dev_wwn[XCOPY_NAA_IEEE_REGEX_LEN], *dev_wwn; |
71 | int rc; | 71 | int rc; |
72 | 72 | ||
73 | if (src == true) | 73 | if (src) |
74 | dev_wwn = &xop->dst_tid_wwn[0]; | 74 | dev_wwn = &xop->dst_tid_wwn[0]; |
75 | else | 75 | else |
76 | dev_wwn = &xop->src_tid_wwn[0]; | 76 | dev_wwn = &xop->src_tid_wwn[0]; |
@@ -88,7 +88,7 @@ static int target_xcopy_locate_se_dev_e4(struct se_cmd *se_cmd, struct xcopy_op | |||
88 | if (rc != 0) | 88 | if (rc != 0) |
89 | continue; | 89 | continue; |
90 | 90 | ||
91 | if (src == true) { | 91 | if (src) { |
92 | xop->dst_dev = se_dev; | 92 | xop->dst_dev = se_dev; |
93 | pr_debug("XCOPY 0xe4: Setting xop->dst_dev: %p from located" | 93 | pr_debug("XCOPY 0xe4: Setting xop->dst_dev: %p from located" |
94 | " se_dev\n", xop->dst_dev); | 94 | " se_dev\n", xop->dst_dev); |
@@ -166,7 +166,7 @@ static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op | |||
166 | return -EINVAL; | 166 | return -EINVAL; |
167 | } | 167 | } |
168 | 168 | ||
169 | if (src == true) { | 169 | if (src) { |
170 | memcpy(&xop->src_tid_wwn[0], &desc[8], XCOPY_NAA_IEEE_REGEX_LEN); | 170 | memcpy(&xop->src_tid_wwn[0], &desc[8], XCOPY_NAA_IEEE_REGEX_LEN); |
171 | /* | 171 | /* |
172 | * Determine if the source designator matches the local device | 172 | * Determine if the source designator matches the local device |
@@ -236,7 +236,7 @@ static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, | |||
236 | /* | 236 | /* |
237 | * Assume target descriptors are in source -> destination order.. | 237 | * Assume target descriptors are in source -> destination order.. |
238 | */ | 238 | */ |
239 | if (src == true) | 239 | if (src) |
240 | src = false; | 240 | src = false; |
241 | else | 241 | else |
242 | src = true; | 242 | src = true; |
@@ -560,7 +560,7 @@ static int target_xcopy_init_pt_lun( | |||
560 | * reservations. The pt_cmd->se_lun pointer will be setup from within | 560 | * reservations. The pt_cmd->se_lun pointer will be setup from within |
561 | * target_xcopy_setup_pt_port() | 561 | * target_xcopy_setup_pt_port() |
562 | */ | 562 | */ |
563 | if (remote_port == false) { | 563 | if (!remote_port) { |
564 | pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD | SCF_CMD_XCOPY_PASSTHROUGH; | 564 | pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD | SCF_CMD_XCOPY_PASSTHROUGH; |
565 | return 0; | 565 | return 0; |
566 | } | 566 | } |