diff options
author | David Disseldorp <[email protected]> | 2020-03-27 15:19:50 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-03-29 18:10:59 -0400 |
commit | 95b1b51e776d89882ee67077976784b8812fbf9f (patch) | |
tree | 6f1cc6bdc32ec89952dc030b9efa86e3eda87511 | |
parent | 8033824bbf3c15e6321045a3f51d6f6947d89d47 (diff) |
scsi: target: use #define for xcopy descriptor len
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: David Disseldorp <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/target/target_core_xcopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 425c1070de08..7e5b13da0c20 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c @@ -134,7 +134,7 @@ static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op * Assigned designator */ desig_len = desc[7]; - if (desig_len != 16) { + if (desig_len != XCOPY_NAA_IEEE_REGEX_LEN) { pr_err("XCOPY 0xe4: invalid desig_len: %d\n", (int)desig_len); return -EINVAL; } |