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:
Marco Trevisan (Treviño) 2019-12-12 14:54:26 +01:00
parent c594863639
commit 299a797423

View file

@ -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;