summaryrefslogtreecommitdiff
path: root/isisd/fabricd.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/fabricd.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/fabricd.c')
-rw-r--r--isisd/fabricd.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/isisd/fabricd.c b/isisd/fabricd.c
index 2937df992c..3e0d4ba549 100644
--- a/isisd/fabricd.c
+++ b/isisd/fabricd.c
@@ -250,7 +250,7 @@ void fabricd_finish(struct fabricd *f)
hash_free(f->neighbors_neighbors);
}
-static int fabricd_initial_sync_timeout(struct thread *thread)
+static void fabricd_initial_sync_timeout(struct thread *thread)
{
struct fabricd *f = THREAD_ARG(thread);
@@ -258,7 +258,6 @@ static int fabricd_initial_sync_timeout(struct thread *thread)
f->initial_sync_circuit->interface->name);
f->initial_sync_state = FABRICD_SYNC_PENDING;
f->initial_sync_circuit = NULL;
- return 0;
}
void fabricd_initial_sync_hello(struct isis_circuit *circuit)
@@ -399,22 +398,21 @@ static uint8_t fabricd_calculate_fabric_tier(struct isis_area *area)
return tier;
}
-static int fabricd_tier_set_timer(struct thread *thread)
+static void fabricd_tier_set_timer(struct thread *thread)
{
struct fabricd *f = THREAD_ARG(thread);
fabricd_set_tier(f, f->tier_pending);
- return 0;
}
-static int fabricd_tier_calculation_cb(struct thread *thread)
+static void fabricd_tier_calculation_cb(struct thread *thread)
{
struct fabricd *f = THREAD_ARG(thread);
uint8_t tier = ISIS_TIER_UNDEFINED;
tier = fabricd_calculate_fabric_tier(f->area);
if (tier == ISIS_TIER_UNDEFINED)
- return 0;
+ return;
zlog_info("OpenFabric: Got tier %hhu from algorithm. Arming timer.",
tier);
@@ -423,7 +421,6 @@ static int fabricd_tier_calculation_cb(struct thread *thread)
f->area->lsp_gen_interval[ISIS_LEVEL2 - 1],
&f->tier_set_timer);
- return 0;
}
static void fabricd_bump_tier_calculation_timer(struct fabricd *f)