Skip to content

Commit

Permalink
malloc: remove return from void functions
Browse files Browse the repository at this point in the history
[ upstream commit 732ba1b ]

Remove return from rte_free and eal_free_no_trace both functions are
declared to have a return type of void so they shouldn't return a value.

Fixes: 52f409d ("trace: add memory tracepoints")

Signed-off-by: Tyler Retzlaff <[email protected]>
Reviewed-by: Morten Brørup <[email protected]>
  • Loading branch information
Tyler Retzlaff authored and kevintraynor committed Oct 31, 2023
1 parent 997c669 commit 7a268df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/eal/common/rte_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ mem_free(void *addr, const bool trace_ena)
void
rte_free(void *addr)
{
return mem_free(addr, true);
mem_free(addr, true);
}

void
eal_free_no_trace(void *addr)
{
return mem_free(addr, false);
mem_free(addr, false);
}

static void *
Expand Down

0 comments on commit 7a268df

Please sign in to comment.