From 11760059d3169e82b69257334bb25c4dc94b299b Mon Sep 17 00:00:00 2001 From: nvt-se Date: Sat, 3 Jul 2010 23:52:02 +0000 Subject: [PATCH] The second predicate is not needed. --- core/net/rpl/rpl-dag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rpl/rpl-dag.c b/core/net/rpl/rpl-dag.c index 55396eea1..237447541 100644 --- a/core/net/rpl/rpl-dag.c +++ b/core/net/rpl/rpl-dag.c @@ -32,7 +32,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rpl-dag.c,v 1.30 2010/06/28 14:51:23 nvt-se Exp $ + * $Id: rpl-dag.c,v 1.31 2010/07/03 23:52:02 nvt-se Exp $ */ /** * \file @@ -643,7 +643,7 @@ rpl_process_dio(uip_ipaddr_t *from, rpl_dio_t *dio) p = rpl_find_parent(dag, from); if(p == NULL) { - if(RPL_PARENT_COUNT(dag) == RPL_MAX_PARENTS && dio->rank >= dag->rank) { + if(RPL_PARENT_COUNT(dag) == RPL_MAX_PARENTS) { /* Try to make room for a new parent. */ remove_parents(dag, dio->rank); }