Skip to content

Commit a0db08f

Browse files
tobluxjenswi-linaro
authored andcommitted
tee: amdtee: Remove unused return variables
In tee_params_to_amd_params() and amd_params_to_tee_params(), return 0 directly and remove the unused return variables. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 8f0b4cc commit a0db08f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/tee/amdtee/call.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
static int tee_params_to_amd_params(struct tee_param *tee, u32 count,
1616
struct tee_operation *amd)
1717
{
18-
int i, ret = 0;
18+
int i;
1919
u32 type;
2020

2121
if (!count)
@@ -66,13 +66,13 @@ static int tee_params_to_amd_params(struct tee_param *tee, u32 count,
6666
i, amd->params[i].val.b);
6767
}
6868
}
69-
return ret;
69+
return 0;
7070
}
7171

7272
static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
7373
struct tee_operation *amd)
7474
{
75-
int i, ret = 0;
75+
int i;
7676
u32 type;
7777

7878
if (!count)
@@ -118,7 +118,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
118118
i, amd->params[i].val.b);
119119
}
120120
}
121-
return ret;
121+
return 0;
122122
}
123123

124124
static DEFINE_MUTEX(ta_refcount_mutex);

0 commit comments

Comments
 (0)