lib: smf: Remove unused variables

In function smf_execute_ancestor_exit_actions, variables
"tmp_state" and "target_parent" are set but not used.

Twister passed:
twister -T tests/lib/smf/

Signed-off-by: Sam Hurst <sbh1187@gmail.com>
This commit is contained in:
Sam Hurst 2021-10-18 17:00:32 -07:00 committed by Christopher Friedt
commit c4cdbc6062

View file

@ -153,15 +153,9 @@ __unused static bool smf_execute_ancestor_exit_actions(
struct smf_ctx *const ctx, const struct smf_state *target)
{
struct internal_ctx * const internal = (void *) &ctx->internal;
const struct smf_state *tmp_state;
const struct smf_state *target_parent;
/* Execute all parent exit actions in reverse order */
/* Get target state's parent state */
target_parent = target->parent;
tmp_state = ctx->current;
for (const struct smf_state *tmp_state = ctx->current->parent;
tmp_state != NULL;
tmp_state = tmp_state->parent) {