From c733548963447f4383866f66117fd5e302d53baa Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 4 Oct 2021 09:28:36 -0400 Subject: ripngd: Ensure better `struct thread *` semantics 1) Remove `struct thread *` pointers that are never used 2) 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: Donald Sharp --- ripngd/ripng_interface.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ripngd/ripng_interface.c') diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index f374fcb83..7b5e7604d 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -618,7 +618,6 @@ static int ripng_interface_wakeup(struct thread *t) ifp = THREAD_ARG(t); ri = ifp->info; - ri->t_wakeup = NULL; /* Join to multicast group. */ if (ripng_multicast_join(ifp, ri->ripng->sock) < 0) { -- cgit v1.2.3