Skip to content
Snippets Groups Projects
Commit d542c50c authored by Jakob Olsson's avatar Jakob Olsson
Browse files

host: remove unnecessary return

parent 2d884efb
Branches
No related tags found
No related merge requests found
Pipeline #16936 passed with warnings
......@@ -102,7 +102,7 @@ static void topologyd_node_expired(struct uloop_timeout *t)
{
struct node *p = container_of(t, struct node, validity_timer);
struct topologyd_private *priv = p->priv;
int i = 0, ret = 0;
int i = 0;
struct topology_changelog elem;
//Here before deleting a ieee1905 node
......@@ -118,9 +118,7 @@ static void topologyd_node_expired(struct uloop_timeout *t)
//Send event
topology_send_node_event(&elem, p->ingress_ifr_name);
/*Here we need to change the status of node in hosts*/
ret = host_topo_node_del(priv, NULL, elem.nbr_macaddr, 0);
if (ret != 0)
err("Failed to add node in the hosts\n");
host_topo_node_del(priv, NULL, elem.nbr_macaddr, 0);
}
//Here we log in the changelog as the node will be deleted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment