From 7a268dfe93b27babb992f5c5e776d105dbe0d945 Mon Sep 17 00:00:00 2001 From: Tyler Retzlaff Date: Tue, 17 Oct 2023 06:03:39 -0700 Subject: [PATCH] malloc: remove return from void functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ 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: 52f409d614a0 ("trace: add memory tracepoints") Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup --- lib/eal/common/rte_malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/rte_malloc.c b/lib/eal/common/rte_malloc.c index d0bec26920..c5a7757deb 100644 --- a/lib/eal/common/rte_malloc.c +++ b/lib/eal/common/rte_malloc.c @@ -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 *