Skip to content

Commit

Permalink
Adapted comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdede committed Jul 23, 2013
1 parent 9dd5af7 commit 2f1bf73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/net/rpl/rpl-dag.c
Expand Up @@ -703,8 +703,8 @@ rpl_remove_parent(rpl_dag_t *dag, rpl_parent_t *parent)
void
rpl_nullify_parent(rpl_dag_t *dag, rpl_parent_t *parent)
{
// local repair calls nullification because the preferred parent is NULL!
// So check if parent is NULL to trigger uip_ds6_defrt_rm.
/* This function can be called when the preferred parent is NULL, so we
need to handle this condition in order to trigger uip_ds6_defrt_rm. */
if(parent == dag->preferred_parent || dag->preferred_parent == NULL) {
dag->preferred_parent = NULL;
dag->rank = INFINITE_RANK;
Expand Down

0 comments on commit 2f1bf73

Please sign in to comment.