* [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe
@ 2014-01-02 13:05 peichao85-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1388667942-10198-1-git-send-email-peichao85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: peichao85-Re5JQEeQqe8AvxtiuMwx3w @ 2014-01-02 13:05 UTC (permalink / raw)
To: dev-VfR2kkLFssw
From: Pei Chao <peichao85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Remove duplicated lines when reserving memory zone.
Signed-off-by: Pei Chao <peichao85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
lib/librte_eal/common/eal_common_memzone.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c
index f036621..d8916ab 100644
--- a/lib/librte_eal/common/eal_common_memzone.c
+++ b/lib/librte_eal/common/eal_common_memzone.c
@@ -128,13 +128,6 @@ memzone_reserve_aligned_thread_unsafe(const char *name, size_t len,
len += CACHE_LINE_MASK;
len &= ~((size_t) CACHE_LINE_MASK);
- /* save original length */
- requested_len = len;
-
- /* reserve extra space for future alignment */
- if (len)
- len += align;
-
/* save requested length */
requested_len = len;
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-02 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-02 13:05 [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe peichao85-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1388667942-10198-1-git-send-email-peichao85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-02 15:10 ` Thomas Monjalon
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).