Merge pull request #1719 from jcook/master

RPL: Remove useless `else' block as def_route will be removed before if ex…
This commit is contained in:
Nicolas Tsiftes 2016-09-09 16:48:01 +02:00 committed by GitHub
commit 2c5c7d4f26

View file

@ -554,13 +554,6 @@ rpl_set_default_route(rpl_instance_t *instance, uip_ipaddr_t *from)
if(instance->def_route == NULL) {
return 0;
}
} else {
PRINTF("RPL: Removing default route\n");
if(instance->def_route != NULL) {
uip_ds6_defrt_rm(instance->def_route);
} else {
PRINTF("RPL: Not actually removing default route, since instance had no default route\n");
}
}
return 1;
}