From: Donald Sharp Date: Mon, 16 Oct 2017 18:47:08 +0000 (-0400) Subject: lib: No need to call apply_mask 2 times X-Git-Tag: frr-4.0-dev~201^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1ab21a40ebdd21ee2eb8127a110793f907b48eef;p=matthieu%2Ffrr.git 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 --- 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);