1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_rpl: remove superfluous trickle reset

This commit is contained in:
Cenk Gündoğan 2016-03-23 10:02:26 +01:00
parent 01d95afb14
commit b1249a5db1

View File

@ -223,7 +223,6 @@ void gnrc_rpl_local_repair(gnrc_rpl_dodag_t *dodag)
void gnrc_rpl_parent_update(gnrc_rpl_dodag_t *dodag, gnrc_rpl_parent_t *parent)
{
uint16_t old_rank = dodag->my_rank;
uint32_t now = xtimer_now();
/* update Parent lifetime */
@ -248,10 +247,6 @@ void gnrc_rpl_parent_update(gnrc_rpl_dodag_t *dodag, gnrc_rpl_parent_t *parent)
if (_gnrc_rpl_find_preferred_parent(dodag) == NULL) {
gnrc_rpl_local_repair(dodag);
}
if (dodag->parents && (old_rank != dodag->my_rank)) {
trickle_reset_timer(&dodag->trickle);
}
}
/**