summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPei Chao <peichao85@gmail.com>2014-01-02 21:05:42 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 18:11:17 +0100
commit89b178e6b79cda50144da7ee09a292f3f0f75748 (patch)
treed7d256948df3ccfb31991a9bdd74b7e88ea8dfac /lib
parentbc51023eb1d32fc7f7f21bad469cd708a396581c (diff)
downloaddpdk-89b178e6b79cda50144da7ee09a292f3f0f75748.zip
dpdk-89b178e6b79cda50144da7ee09a292f3f0f75748.tar.gz
dpdk-89b178e6b79cda50144da7ee09a292f3f0f75748.tar.xz
mem: remove duplicated lines
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_eal/common/eal_common_memzone.c7
1 files changed, 0 insertions, 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;