Commit 7e642ca0 authored by Li Feng's avatar Li Feng Committed by Martin K. Petersen

scsi: target: Remove unused function arguments

The se_cmd is unused in these functions, just remove it.

Link: https://lore.kernel.org/r/20210913083045.3670648-1-fengli@smartx.comReviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarLi Feng <fengli@smartx.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent aba3b075
...@@ -295,8 +295,7 @@ static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, ...@@ -295,8 +295,7 @@ static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd,
return -EINVAL; return -EINVAL;
} }
static int target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op *xop, static int target_xcopy_parse_segdesc_02(struct xcopy_op *xop, unsigned char *p)
unsigned char *p)
{ {
unsigned char *desc = p; unsigned char *desc = p;
int dc = (desc[1] & 0x02); int dc = (desc[1] & 0x02);
...@@ -332,9 +331,9 @@ static int target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op ...@@ -332,9 +331,9 @@ static int target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op
return 0; return 0;
} }
static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd, static int target_xcopy_parse_segment_descriptors(struct xcopy_op *xop,
struct xcopy_op *xop, unsigned char *p, unsigned char *p, unsigned int sdll,
unsigned int sdll, sense_reason_t *sense_ret) sense_reason_t *sense_ret)
{ {
unsigned char *desc = p; unsigned char *desc = p;
unsigned int start = 0; unsigned int start = 0;
...@@ -362,7 +361,7 @@ static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd, ...@@ -362,7 +361,7 @@ static int target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd,
*/ */
switch (desc[0]) { switch (desc[0]) {
case 0x02: case 0x02:
rc = target_xcopy_parse_segdesc_02(se_cmd, xop, desc); rc = target_xcopy_parse_segdesc_02(xop, desc);
if (rc < 0) if (rc < 0)
goto out; goto out;
...@@ -840,8 +839,7 @@ static sense_reason_t target_parse_xcopy_cmd(struct xcopy_op *xop) ...@@ -840,8 +839,7 @@ static sense_reason_t target_parse_xcopy_cmd(struct xcopy_op *xop)
*/ */
seg_desc = &p[16] + tdll; seg_desc = &p[16] + tdll;
rc = target_xcopy_parse_segment_descriptors(se_cmd, xop, seg_desc, rc = target_xcopy_parse_segment_descriptors(xop, seg_desc, sdll, &ret);
sdll, &ret);
if (rc <= 0) if (rc <= 0)
goto out; goto out;
......
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