summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_nssa.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-09-23 01:14:27 -0300
committerRenato Westphal <renato@opensourcerouting.org>2021-10-05 21:21:43 -0300
commit19b8369ca7802c41c7632e4e4ebb1f846b2f25c1 (patch)
treea3823ae7fe24e37bda8734d35cc4d53051bdf7d1 /ospf6d/ospf6_nssa.c
parent36be5c61b3143225f9ae700ab192bcbc985f3d36 (diff)
ospf6d: remove redundant loop
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_nssa.c')
-rw-r--r--ospf6d/ospf6_nssa.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index 809768fb5c..7f18188861 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -262,22 +262,20 @@ static void ospf6_abr_announce_aggregates(struct ospf6 *ospf6)
{
struct ospf6_area *area;
struct ospf6_route *range;
- struct listnode *node, *nnode;
+ struct listnode *node;
if (IS_OSPF6_DEBUG_ABR)
zlog_debug("ospf6_abr_announce_aggregates(): Start");
- for (ALL_LIST_ELEMENTS(ospf6->area_list, node, nnode, area)) {
- for (range = ospf6_route_head(area->range_table); range;
- range = ospf6_route_next(range))
- ospf6_abr_range_update(range, ospf6);
- }
-
for (ALL_LIST_ELEMENTS_RO(ospf6->area_list, node, area)) {
if (IS_OSPF6_DEBUG_ABR)
zlog_debug(
"ospf_abr_announce_aggregates(): looking at area %pI4",
&area->area_id);
+
+ for (range = ospf6_route_head(area->range_table); range;
+ range = ospf6_route_next(range))
+ ospf6_abr_range_update(range, ospf6);
}
if (IS_OSPF6_DEBUG_ABR)