diff options
| author | Manoj Naragund <mnaragund@vmware.com> | 2021-09-30 10:28:11 -0700 |
|---|---|---|
| committer | Manoj Naragund <mnaragund@vmware.com> | 2021-10-06 08:54:47 -0700 |
| commit | bc465fb6cc7cfbad3301d6d0ceb4fb539dbaec35 (patch) | |
| tree | bb2fd852dd9e7cb66717756fe7e2f50db9551765 /ospf6d/ospf6_intra.c | |
| parent | 25dd89e398b41c50e0e928a01d5ce8376f60c220 (diff) | |
ospf6d: code cleanup.
removal of some of the deadcode in ospf6d.
Signed-off-by: Manoj Naragund <mnaragund@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_intra.c')
| -rw-r--r-- | ospf6d/ospf6_intra.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c index 27e21a0417..830a0960c2 100644 --- a/ospf6d/ospf6_intra.c +++ b/ospf6d/ospf6_intra.c @@ -1524,8 +1524,8 @@ void ospf6_intra_prefix_route_ecmp_path(struct ospf6_area *oa, /* Check old route path and route has same * origin. */ - if (o_path->area_id != route->path.area_id || - (!ospf6_ls_origin_cmp(o_path, route))) + if (o_path->area_id != route->path.area_id + || !ospf6_ls_origin_same(o_path, &route->path)) continue; /* Cost is not same then delete current path */ @@ -1629,8 +1629,8 @@ void ospf6_intra_prefix_route_ecmp_path(struct ospf6_area *oa, */ for (ALL_LIST_ELEMENTS_RO(old_route->paths, anode, o_path)) { - if (o_path->area_id == route->path.area_id && - (ospf6_ls_origin_cmp(o_path, route))) + if (o_path->area_id == route->path.area_id + && ospf6_ls_origin_same(o_path, &route->path)) break; } /* If path is not found in old_route paths's list, |
