diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-05-17 16:29:29 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-20 09:52:16 -0400 | 
| commit | c905f04c7ce7b09189999d4908c379f880b6b179 (patch) | |
| tree | 28d5769ebac08b41f3410ca7ecc4c7138b15500a /ospf6d/ospf6_nssa.c | |
| parent | 23b11ab185878eb77b3212b9673856bc99d960f2 (diff) | |
ospf6d: Clean up thread interface
a) Remove setting of thread pointer to NULL after
thread invocation, this is already done.
b) Use thread_is_scheduled()
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_nssa.c')
| -rw-r--r-- | ospf6d/ospf6_nssa.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c index 53b45d6ca3..b1bff69f06 100644 --- a/ospf6d/ospf6_nssa.c +++ b/ospf6d/ospf6_nssa.c @@ -1007,7 +1007,7 @@ static void ospf6_abr_task_timer(struct thread *thread)  void ospf6_schedule_abr_task(struct ospf6 *ospf6)  { -	if (ospf6->t_abr_task) { +	if (thread_is_scheduled(ospf6->t_abr_task)) {  		if (IS_OSPF6_DEBUG_ABR)  			zlog_debug("ABR task already scheduled");  		return;  | 
