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-02 16:03:19 +0100
commit63f7065884090a017959167d881e7788b1f4f2f5 (patch)
treee238f93e94ef5c37d97ba6170c9b783ad756f992 /lib
parent03949f6e27228f3f3fd4d434bfa9a9744035ae78 (diff)
downloaddpdk-63f7065884090a017959167d881e7788b1f4f2f5.zip
dpdk-63f7065884090a017959167d881e7788b1f4f2f5.tar.gz
dpdk-63f7065884090a017959167d881e7788b1f4f2f5.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;