tee: amdtee: Remove unused return variables
PATCH 1/1 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 <[email protected]>
--- drivers/tee/amdtee/call.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/tee/amdtee/call.c +4 -4
@@ -15,7 +15,7 @@static int tee_params_to_amd_params (struct tee_param *tee,u32 count,struct tee_operation *amd) { -int i, ret =0 ; +int i;u32 type;if (!count)
@@ -66,13 +66,13 @@ static int tee_params_to_amd_params(struct tee_param *tee, u32 count, i, amd->params[i].val.b); } } -return ret; +return 0 ; }static int amd_params_to_tee_params (struct tee_param *tee,u32 count,struct tee_operation *amd) { -int i, ret =0 ; +int i;u32 type;if (!count)
@@ -118,7 +118,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count, i, amd->params[i].val.b); } } -return ret; +return 0 ; }static DEFINE_MUTEX (ta_refcount_mutex);
Signature · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
Quoted 8 lines · Thorsten Blum
In
tee_params_to_amd_params()andamd_params_to_tee_params(), return 0 directly and remove the unused return variables.Signed-off-by Thorsten Blum <[email protected]>--- drivers/tee/amdtee/call.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Looks good. I'm picking up this.
Thanks,
Jens
Quoted 43 lines
drivers/tee/amdtee/call.c +4
-5@@ -15,7 +15,7 @@static int tee_params_to_amd_params (struct tee_param *tee,u32 count,struct tee_operation *amd) { -int i, ret =0 ; +int i;u32 type;if (!count)@@ -66,13 +66,13 @@ static int tee_params_to_amd_params(struct tee_param *tee, u32 count, i, amd->params[i].val.b); } } -return ret; +return 0 ; }static int amd_params_to_tee_params (struct tee_param *tee,u32 count,struct tee_operation *amd) { -int i, ret =0 ; +int i;u32 type;if (!count)@@ -118,7 +118,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count, i, amd->params[i].val.b); } } -return ret; +return 0 ; }static DEFINE_MUTEX (ta_refcount_mutex); --Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4