summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.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 /pimd/pim_mlag.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 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c
index f4ddc1bf64..68f77ad6d9 100644
--- a/pimd/pim_mlag.c
+++ b/pimd/pim_mlag.c
@@ -930,12 +930,12 @@ int pim_zebra_mlag_process_down(ZAPI_CALLBACK_ARGS)
return 0;
}
-static int pim_mlag_register_handler(struct thread *thread)
+static void pim_mlag_register_handler(struct thread *thread)
{
uint32_t bit_mask = 0;
if (!zclient)
- return -1;
+ return;
SET_FLAG(bit_mask, (1 << MLAG_STATUS_UPDATE));
SET_FLAG(bit_mask, (1 << MLAG_MROUTE_ADD));
@@ -952,7 +952,6 @@ static int pim_mlag_register_handler(struct thread *thread)
__func__, bit_mask);
zclient_send_mlag_register(zclient, bit_mask);
- return 0;
}
void pim_mlag_register(void)
@@ -966,17 +965,16 @@ void pim_mlag_register(void)
NULL);
}
-static int pim_mlag_deregister_handler(struct thread *thread)
+static void pim_mlag_deregister_handler(struct thread *thread)
{
if (!zclient)
- return -1;
+ return;
if (PIM_DEBUG_MLAG)
zlog_debug("%s: Posting Client De-Register to MLAG from PIM",
__func__);
router->connected_to_mlag = false;
zclient_send_mlag_deregister(zclient);
- return 0;
}
void pim_mlag_deregister(void)