tests: 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>
This commit is contained in:
Donatas Abraitis 2021-10-07 12:22:18 +03:00
parent 89748f2704
commit 1a8e5aea78
2 changed files with 0 additions and 2 deletions

View File

@ -153,7 +153,6 @@ int main(int argc, char **argv)
XFREE(MTYPE_TMP, timers[index]->arg);
thread_cancel(&timers[index]);
timers[index] = NULL;
timers_pending--;
}

View File

@ -77,7 +77,6 @@ int main(int argc, char **argv)
index = prng_rand(prng) % SCHEDULE_TIMERS;
thread_cancel(&timers[index]);
timers[index] = NULL;
}
monotime(&tv_stop);