summaryrefslogtreecommitdiff
path: root/isisd/isis_ldp_sync.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-22 19:04:25 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-23 19:56:04 -0500
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /isisd/isis_ldp_sync.c
parenteaba619fc183f68a456b3918f449185b3b477426 (diff)
*: Change thread->func to return void instead of int
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd/isis_ldp_sync.c')
-rw-r--r--isisd/isis_ldp_sync.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/isisd/isis_ldp_sync.c b/isisd/isis_ldp_sync.c
index 0c541348df..3c68b8d15f 100644
--- a/isisd/isis_ldp_sync.c
+++ b/isisd/isis_ldp_sync.c
@@ -344,7 +344,7 @@ void isis_ldp_sync_set_if_metric(struct isis_circuit *circuit, bool run_regen)
/*
* LDP-SYNC holddown timer routines
*/
-static int isis_ldp_sync_holddown_timer(struct thread *thread)
+static void isis_ldp_sync_holddown_timer(struct thread *thread)
{
struct isis_circuit *circuit;
struct ldp_sync_info *ldp_sync_info;
@@ -355,7 +355,7 @@ static int isis_ldp_sync_holddown_timer(struct thread *thread)
*/
circuit = THREAD_ARG(thread);
if (circuit->ldp_sync_info == NULL)
- return 0;
+ return;
ldp_sync_info = circuit->ldp_sync_info;
@@ -366,7 +366,6 @@ static int isis_ldp_sync_holddown_timer(struct thread *thread)
circuit->interface->name);
isis_ldp_sync_set_if_metric(circuit, true);
- return 0;
}
void isis_ldp_sync_holddown_timer_add(struct isis_circuit *circuit)