diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-16 20:47:08 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-16 20:47:08 +0200 |
commit | 1ab21a40ebdd21ee2eb8127a110793f907b48eef (patch) | |
tree | 5103b13e4f86e4b4ce55581017900c27786f65bc /lib/table.c | |
parent | lib: Allow hash_get to sidestep expensive hash key generation in some cases (diff) | |
download | frr-1ab21a40ebdd21ee2eb8127a110793f907b48eef.tar.xz frr-1ab21a40ebdd21ee2eb8127a110793f907b48eef.zip |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | lib/table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/table.c b/lib/table.c index b0b0d24ea..76062cd10 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); |