From 1ab21a40ebdd21ee2eb8127a110793f907b48eef Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 16 Oct 2017 14:47:08 -0400 Subject: [PATCH] lib: No need to call apply_mask 2 times route_node_set is only called by route_node_get which calls apply_mask. There is no need to do this again. Signed-off-by: Donald Sharp --- lib/table.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/table.c b/lib/table.c index b0b0d24ea0..76062cd10c 100644 --- a/lib/table.c +++ b/lib/table.c @@ -74,7 +74,6 @@ static struct route_node *route_node_set(struct route_table *table, node = route_node_new(table); prefix_copy(&node->p, prefix); - apply_mask(&node->p); node->table = table; inserted = hash_get(node->table->hash, node, hash_alloc_intern); -- 2.39.5