mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 16:57:43 +00:00
fpm: don't check for NULL on async events
`thread_cancel_async` already handles the case of NULL events. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
15e9c561b2
commit
c69e7ab7d9
@ -399,14 +399,10 @@ static void fpm_reconnect(struct fpm_nl_ctx *fnc)
|
||||
THREAD_OFF(fnc->t_read);
|
||||
THREAD_OFF(fnc->t_write);
|
||||
|
||||
if (fnc->t_ribreset)
|
||||
thread_cancel_async(zrouter.master, &fnc->t_ribreset, NULL);
|
||||
if (fnc->t_ribwalk)
|
||||
thread_cancel_async(zrouter.master, &fnc->t_ribwalk, NULL);
|
||||
if (fnc->t_rmacreset)
|
||||
thread_cancel_async(zrouter.master, &fnc->t_rmacreset, NULL);
|
||||
if (fnc->t_rmacwalk)
|
||||
thread_cancel_async(zrouter.master, &fnc->t_rmacwalk, NULL);
|
||||
thread_cancel_async(zrouter.master, &fnc->t_ribreset, NULL);
|
||||
thread_cancel_async(zrouter.master, &fnc->t_ribwalk, NULL);
|
||||
thread_cancel_async(zrouter.master, &fnc->t_rmacreset, NULL);
|
||||
thread_cancel_async(zrouter.master, &fnc->t_rmacwalk, NULL);
|
||||
|
||||
/* FPM is disabled, don't attempt to connect. */
|
||||
if (fnc->disabled)
|
||||
|
Loading…
Reference in New Issue
Block a user