git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f622f38
)
mem: remove duplicated lines
author
Pei Chao
<peichao85@gmail.com>
Thu, 2 Jan 2014 13:05:42 +0000
(21:05 +0800)
committer
David Marchand
<david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:19 +0000
(21:29 +0100)
Extra space for future alignment was reserved twice.
It was introduced in version 1.3.0 (commit
916e4f4f4e45a1d3cdd473cf9ef
).
Signed-off-by: Pei Chao <peichao85@gmail.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/eal_common_memzone.c
patch
|
blob
|
history
diff --git
a/lib/librte_eal/common/eal_common_memzone.c
b/lib/librte_eal/common/eal_common_memzone.c
index
bb5cfd3
..
e15eee2
100644
(file)
--- 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;