Adapted comment

This commit is contained in:
Jens Dede 2013-07-23 20:01:10 +02:00
parent 9dd5af78c8
commit 2f1bf730af
1 changed files with 2 additions and 2 deletions

View File

@ -703,8 +703,8 @@ rpl_remove_parent(rpl_dag_t *dag, rpl_parent_t *parent)
void void
rpl_nullify_parent(rpl_dag_t *dag, rpl_parent_t *parent) rpl_nullify_parent(rpl_dag_t *dag, rpl_parent_t *parent)
{ {
// local repair calls nullification because the preferred parent is NULL! /* This function can be called when the preferred parent is NULL, so we
// So check if parent is NULL to trigger uip_ds6_defrt_rm. need to handle this condition in order to trigger uip_ds6_defrt_rm. */
if(parent == dag->preferred_parent || dag->preferred_parent == NULL) { if(parent == dag->preferred_parent || dag->preferred_parent == NULL) {
dag->preferred_parent = NULL; dag->preferred_parent = NULL;
dag->rank = INFINITE_RANK; dag->rank = INFINITE_RANK;