DPDK patches and discussions
 help / color / mirror / Atom feed
From: peichao85@gmail.com
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] Remove duplicated lines in memzone_reserve_aligned_thread_unsafe
Date: Thu,  2 Jan 2014 21:05:42 +0800	[thread overview]
Message-ID: <1388667942-10198-1-git-send-email-peichao85@gmail.com> (raw)

From: Pei Chao <peichao85@gmail.com>

Remove duplicated lines when reserving memory zone.

Signed-off-by: Pei Chao <peichao85@gmail.com>
---
 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

             reply	other threads:[~2014-01-02 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-02 13:05 peichao85 [this message]
2014-01-02 15:10 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1388667942-10198-1-git-send-email-peichao85@gmail.com \
    --to=peichao85@gmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).