1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

gnrc_rpl_dodag: remove new_best assignment at initialization

The variable is without usage reassigned with `dodag->parent` below.
This commit is contained in:
Martine Lenders 2018-11-08 14:53:32 +01:00 committed by Martine S. Lenders
parent fa95cc8090
commit 3edb52de0c

View File

@ -305,7 +305,7 @@ void gnrc_rpl_parent_update(gnrc_rpl_dodag_t *dodag, gnrc_rpl_parent_t *parent)
static gnrc_rpl_parent_t *_gnrc_rpl_find_preferred_parent(gnrc_rpl_dodag_t *dodag)
{
gnrc_rpl_parent_t *old_best = dodag->parents;
gnrc_rpl_parent_t *new_best = old_best;
gnrc_rpl_parent_t *new_best;
uint16_t old_rank = dodag->my_rank;
gnrc_rpl_parent_t *elt = NULL;
gnrc_rpl_parent_t *tmp = NULL;