]> git.puffer.fish Git - mirror/frr.git/commit
*: Use proper semantics for turning off thread 7283/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 12 Oct 2020 12:35:18 +0000 (08:35 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 12 Oct 2020 12:35:18 +0000 (08:35 -0400)
commit28ef0ee121aa93399d8684a59d6ca66ee07ade84
tree0ed63f8466ec87119c32a0af40e490aa89c6622d
parent8b6b6b694d7c5ae8193e0c9a3907b9143df44a07
*: Use proper semantics for turning off thread

We have this pattern in the code base:

if (thread)
THREAD_OFF(thread);

If we look at THREAD_OFF we check to see if thread
is non-null too.  So we have a double check.
This is unnecessary.  Convert to just using THREAD_OFF

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_fsm.h
bgpd/bgp_routemap.c
bgpd/bgp_updgrp.c
eigrpd/eigrp_interface.c
isisd/isis_ldp_sync.c
lib/ldp_sync.c
lib/spf_backoff.c
ospfd/ospf_ldp_sync.c
pimd/pim_bsm.c
pimd/pim_igmp.c
watchfrr/watchfrr.c