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>
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)
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)
i, amd->params[i].val.b);
}
}
- return ret;
+ return 0;
}
static DEFINE_MUTEX(ta_refcount_mutex);