tsch_init: added missing return in case of failed initialization
This commit is contained in:
parent
22cbced037
commit
3ace2b93f6
@ -939,6 +939,7 @@ tsch_init(void)
|
||||
/* Check max hopping sequence length vs default sequence length */
|
||||
if(TSCH_HOPPING_SEQUENCE_MAX_LEN < sizeof(TSCH_DEFAULT_HOPPING_SEQUENCE)) {
|
||||
LOG_ERR("! TSCH_HOPPING_SEQUENCE_MAX_LEN < sizeof(TSCH_DEFAULT_HOPPING_SEQUENCE). Abort init.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Init the queuebuf and TSCH sub-modules */
|
||||
|
Loading…
Reference in New Issue
Block a user