tsch_init: added missing return in case of failed initialization

This commit is contained in:
Simon Duquennoy 2018-10-04 10:42:13 +02:00
parent 22cbced037
commit 3ace2b93f6

View File

@ -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 */