fpi-ssm: Bug on wrong state passed to jump_to_state_delayed
While remove the checks that are already part of the common function fpi_ssm_set_delayed_action_timeout().
This commit is contained in:
parent
c594863639
commit
299a797423
1 changed files with 1 additions and 2 deletions
|
@ -573,8 +573,7 @@ fpi_ssm_jump_to_state_delayed (FpiSsm *machine,
|
||||||
g_autofree char *source_name = NULL;
|
g_autofree char *source_name = NULL;
|
||||||
|
|
||||||
g_return_if_fail (machine != NULL);
|
g_return_if_fail (machine != NULL);
|
||||||
BUG_ON (machine->completed);
|
BUG_ON (state < 0 || state >= machine->nr_states);
|
||||||
BUG_ON (machine->timeout != NULL);
|
|
||||||
|
|
||||||
data = g_new0 (FpiSsmJumpToStateDelayedData, 1);
|
data = g_new0 (FpiSsmJumpToStateDelayedData, 1);
|
||||||
data->machine = machine;
|
data->machine = machine;
|
||||||
|
|
Loading…
Reference in a new issue