diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-24 19:13:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-24 19:13:33 -0400 |
| commit | 491a11070f634529b5c81256d46dfafca7ac894a (patch) | |
| tree | 0b757f728f9ab87346c75522972d6917a4a02633 /ospfd/ospf_ri.c | |
| parent | caca1bff127d8c3e9e9d5cdcc9335c4051a8b061 (diff) | |
| parent | 962d3f8474d73505fbb35ad67cfb1d25787cd857 (diff) | |
Merge pull request #3083 from opensourcerouting/list-housekeeping
ospfd: remove unnecessary housekeeping code when using linked lists
Diffstat (limited to 'ospfd/ospf_ri.c')
| -rw-r--r-- | ospfd/ospf_ri.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c index e95fc43aab..22262c804f 100644 --- a/ospfd/ospf_ri.c +++ b/ospfd/ospf_ri.c @@ -380,10 +380,6 @@ static void unset_pce_domain(uint16_t type, uint32_t domain, if (found) { listnode_delete(pce->pce_domain, old); - /* Avoid misjudgement in the next lookup. */ - if (listcount(pce->pce_domain) == 0) - pce->pce_domain->head = pce->pce_domain->tail = NULL; - /* Finally free the old domain */ XFREE(MTYPE_OSPF_PCE_PARAMS, old); } @@ -430,11 +426,6 @@ static void unset_pce_neighbor(uint16_t type, uint32_t domain, if (found) { listnode_delete(pce->pce_neighbor, old); - /* Avoid misjudgement in the next lookup. */ - if (listcount(pce->pce_neighbor) == 0) - pce->pce_neighbor->head = pce->pce_neighbor->tail = - NULL; - /* Finally free the old domain */ XFREE(MTYPE_OSPF_PCE_PARAMS, old); } |
