diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-04-21 11:01:18 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-04-21 11:01:18 -0400 |
| commit | 4b0e09d878eb8eb9b357ad79c23819792e00cc5e (patch) | |
| tree | 8d29decb13e8828898b3259b59cf35e30c2bbeb8 | |
| parent | 70395c6fd5d02ddf860c0d8079b4f7dd3615128b (diff) | |
ospf6d: fix SA warnings
Clean up some SA warnings in use of ospf6_lsa_unlock()
Signed-off-by: Mark Stapp <mjs@voltanet.io>
| -rw-r--r-- | ospf6d/ospf6_lsdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c index 18fcec82c1..0a9f1c6f7c 100644 --- a/ospf6d/ospf6_lsdb.c +++ b/ospf6d/ospf6_lsdb.c @@ -136,7 +136,7 @@ void ospf6_lsdb_add(struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb) } /* to free the lookup lock in node get*/ route_unlock_node(current); - old = ospf6_lsa_unlock(old); + ospf6_lsa_unlock(old); } ospf6_lsdb_count_assert(lsdb); @@ -164,7 +164,7 @@ void ospf6_lsdb_remove(struct ospf6_lsa *lsa, struct ospf6_lsdb *lsdb) route_unlock_node(node); /* to free the lookup lock */ route_unlock_node(node); /* to free the original lock */ - lsa = ospf6_lsa_unlock(lsa); + ospf6_lsa_unlock(lsa); ospf6_lsdb_count_assert(lsdb); } @@ -279,7 +279,7 @@ struct ospf6_lsa *ospf6_lsdb_next(const struct route_node *iterend, { struct route_node *node = lsa->rn; - lsa = ospf6_lsa_unlock(lsa); + ospf6_lsa_unlock(lsa); do node = route_next_until(node, iterend); @@ -316,7 +316,7 @@ void ospf6_lsdb_lsa_unlock(struct ospf6_lsa *lsa) if (lsa != NULL) { if (lsa->rn != NULL) route_unlock_node(lsa->rn); - lsa = ospf6_lsa_unlock(lsa); + ospf6_lsa_unlock(lsa); } } |
