From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE9504318A; Tue, 17 Oct 2023 15:03:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6630340273; Tue, 17 Oct 2023 15:03:43 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id F35D940270 for ; Tue, 17 Oct 2023 15:03:41 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 17D7820B74C0; Tue, 17 Oct 2023 06:03:41 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 17D7820B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1697547821; bh=Wwd6BUtT5HttiwjczUxeIE6VEi0vjBoDc15iJsgcTm0=; h=From:To:Cc:Subject:Date:From; b=rr2s3eByFCJqGVUdvD1PbeRRZOPGOXdLwZKYZlQFWFfH0jOy+5MWYGYZxF2Q/QlWo XyIXjOJos9XNpfUQGhOw8D1LeLITvuzWyHESGFpVp3U3Yo2EixVwOOR35ZA2+zOlPL 4QG66GAtANLRnmem+tZXXVyeMAsVPhcFS4PZLSUk= From: Tyler Retzlaff To: dev@dpdk.org Cc: Anatoly Burakov , Tyler Retzlaff Subject: [PATCH] eal: remove return from functions declared void return type Date: Tue, 17 Oct 2023 06:03:39 -0700 Message-Id: <1697547819-5448-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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. Signed-off-by: Tyler Retzlaff --- 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 ebafef3..9db0c39 100644 --- a/lib/eal/common/rte_malloc.c +++ b/lib/eal/common/rte_malloc.c @@ -41,13 +41,13 @@ 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 * -- 1.8.3.1