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:
parent
92c8d87b90
commit
c4cdbc6062
1 changed files with 0 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue