diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-16 14:47:08 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-16 14:47:08 -0400 |
| commit | 1ab21a40ebdd21ee2eb8127a110793f907b48eef (patch) | |
| tree | 5103b13e4f86e4b4ce55581017900c27786f65bc /lib/table.c | |
| parent | efb149d95bb4045f44fcaf6e9f1d59f76af6c013 (diff) | |
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 'lib/table.c')
| -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 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); |
