From: Pei Chao Date: Thu, 2 Jan 2014 13:05:42 +0000 (+0800) Subject: mem: remove duplicated lines X-Git-Tag: spdx-start~11034 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e0317809cd26ad505efe6e200be872d97bb05a43;p=dpdk.git 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 Acked-by: Thomas Monjalon --- diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c index bb5cfd3260..e15eee2667 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;