summaryrefslogtreecommitdiffstats
path: root/pimd/pim_zpthread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-23 01:04:25 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-02-24 01:56:04 +0100
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /pimd/pim_zpthread.c
parentMerge pull request #10621 from donaldsharp/cov_fun (diff)
downloadfrr-cc9f21da2218d95567eff1501482ce58e6600f54.tar.xz
frr-cc9f21da2218d95567eff1501482ce58e6600f54.zip
*: 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_zpthread.c')
-rw-r--r--pimd/pim_zpthread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pimd/pim_zpthread.c b/pimd/pim_zpthread.c
index 518b02474..a34293108 100644
--- a/pimd/pim_zpthread.c
+++ b/pimd/pim_zpthread.c
@@ -140,7 +140,7 @@ static void pim_mlag_zebra_check_for_buffer_flush(uint32_t curr_msg_type,
* Thsi thread reads the clients data from the Gloabl queue and encodes with
* protobuf and pass on to the MLAG socket.
*/
-static int pim_mlag_zthread_handler(struct thread *event)
+static void pim_mlag_zthread_handler(struct thread *event)
{
struct stream *read_s;
uint32_t wr_count = 0;
@@ -155,7 +155,7 @@ static int pim_mlag_zthread_handler(struct thread *event)
__func__, wr_count);
if (wr_count == 0)
- return 0;
+ return;
for (wr_count = 0; wr_count < PIM_MLAG_POST_LIMIT; wr_count++) {
/* FIFO is empty,wait for teh message to be add */
@@ -207,8 +207,6 @@ stream_failure:
if (wr_count >= PIM_MLAG_POST_LIMIT)
pim_mlag_signal_zpthread();
-
- return 0;
}