From: Tyler Retzlaff <roretzla@linux.microsoft.com>
To: dev@dpdk.org
Cc: Anatoly Burakov <anatoly.burakov@intel.com>,
Tyler Retzlaff <roretzla@linux.microsoft.com>
Subject: [PATCH] eal: remove return from functions declared void return type
Date: Tue, 17 Oct 2023 06:03:39 -0700 [thread overview]
Message-ID: <1697547819-5448-1-git-send-email-roretzla@linux.microsoft.com> (raw)
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 <roretzla@linux.microsoft.com>
---
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
next reply other threads:[~2023-10-17 13:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 13:03 Tyler Retzlaff [this message]
2023-10-17 13:14 ` Morten Brørup
2023-10-17 17:51 ` Patrick Robb
2023-10-17 19:29 ` Tyler Retzlaff
2023-10-26 8:42 ` David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1697547819-5448-1-git-send-email-roretzla@linux.microsoft.com \
--to=roretzla@linux.microsoft.com \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).