summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_intra.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-10-07 13:25:43 +0300
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-10-08 08:56:42 +0300
commitd573b8f8639350cfa1edeec6b8e1cd422008ea77 (patch)
treea0abab9b19e11a7d663ba81194db7463521594b1 /ospf6d/ospf6_intra.c
parentae84497d13b2970febfa71b45b6d4b021bb27804 (diff)
ospf6d: Do not explicitly set the thread pointer to NULL
FRR should only ever use the appropriate THREAD_ON/THREAD_OFF semantics. This is espacially true for the functions we end up calling the thread for. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_intra.c')
-rw-r--r--ospf6d/ospf6_intra.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c
index 2d82ff7ce8..6abc1c7d09 100644
--- a/ospf6d/ospf6_intra.c
+++ b/ospf6d/ospf6_intra.c
@@ -248,7 +248,6 @@ int ospf6_router_lsa_originate(struct thread *thread)
int count;
oa = (struct ospf6_area *)THREAD_ARG(thread);
- oa->thread_router_lsa = NULL;
if (oa->ospf6->gr_info.restart_in_progress) {
if (IS_DEBUG_OSPF6_GR)
@@ -533,7 +532,6 @@ int ospf6_network_lsa_originate(struct thread *thread)
uint16_t type;
oi = (struct ospf6_interface *)THREAD_ARG(thread);
- oi->thread_network_lsa = NULL;
/* The interface must be enabled until here. A Network-LSA of a
disabled interface (but was once enabled) should be flushed
@@ -784,7 +782,6 @@ int ospf6_link_lsa_originate(struct thread *thread)
struct ospf6_prefix *op;
oi = (struct ospf6_interface *)THREAD_ARG(thread);
- oi->thread_link_lsa = NULL;
assert(oi->area);
@@ -1030,7 +1027,6 @@ int ospf6_intra_prefix_lsa_originate_stub(struct thread *thread)
int ls_id = 0;
oa = (struct ospf6_area *)THREAD_ARG(thread);
- oa->thread_intra_prefix_lsa = NULL;
if (oa->ospf6->gr_info.restart_in_progress) {
if (IS_DEBUG_OSPF6_GR)
@@ -1269,7 +1265,6 @@ int ospf6_intra_prefix_lsa_originate_transit(struct thread *thread)
uint16_t type;
oi = (struct ospf6_interface *)THREAD_ARG(thread);
- oi->thread_intra_prefix_lsa = NULL;
assert(oi->area);