Skip to content

Commit

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

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 <roretzla@linux.microsoft.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
  • Loading branch information
Tyler Retzlaff authored and bluca committed Nov 8, 2023
1 parent a66bed7 commit 3c037d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/librte_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 3c037d0

Please sign in to comment.