Skip to content

Commit

Permalink
core: tee: initialize variables in entry_open_session()
Browse files Browse the repository at this point in the history
Initialize local variables at declaration as specified by the coding
guidelines.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
clementfaure committed Aug 23, 2023
1 parent 578d609 commit e84bffc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tee/entry_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ static TEE_Result get_open_session_meta(size_t num_params,

static void entry_open_session(struct optee_msg_arg *arg, uint32_t num_params)
{
TEE_Result res;
TEE_Result res = TEE_ERROR_GENERIC;
TEE_ErrorOrigin err_orig = TEE_ORIGIN_TEE;
struct tee_ta_session *s = NULL;
TEE_Identity clnt_id;
TEE_UUID uuid;
TEE_Identity clnt_id = { };
TEE_UUID uuid = { };
struct tee_ta_param param = { };
size_t num_meta;
size_t num_meta = 0;
uint64_t saved_attr[TEE_NUM_PARAMS] = { 0 };

res = get_open_session_meta(num_params, arg->params, &num_meta, &uuid,
Expand Down

0 comments on commit e84bffc

Please sign in to comment.