qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Subject: [Qemu-devel] [PATCH 3/5] memory: do not assign node_mem[] to 0 twice
Date: Thu, 23 May 2013 16:47:20 +0800	[thread overview]
Message-ID: <1369298842-6295-3-git-send-email-gaowanlong@cn.fujitsu.com> (raw)
In-Reply-To: <1369298842-6295-1-git-send-email-gaowanlong@cn.fujitsu.com>

We already assigned node_mem[] to 0 before add numa,
so it's unnecessary to assign twice.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 vl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vl.c b/vl.c
index ce24bcd..5555b1d 100644
--- a/vl.c
+++ b/vl.c
@@ -1381,9 +1381,7 @@ static void numa_add(const char *optarg)
             exit(1);
         }
 
-        if (get_param_value(option, 128, "mem", optarg) == 0) {
-            node_mem[nodenr] = 0;
-        } else {
+        if (get_param_value(option, 128, "mem", optarg) != 0) {
             int64_t sval;
             sval = strtosz(option, &endptr);
             if (sval < 0 || *endptr) {
-- 
1.8.3.rc2.10.g0c2b1cf

  parent reply	other threads:[~2013-05-23  8:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  8:47 [Qemu-devel] [PATCH 1/5] pci-assign: remove the duplicate function name in debug message Wanlong Gao
2013-05-23  8:47 ` [Qemu-devel] [PATCH 2/5] memory: check if the total numa memory size is equal to ram_size Wanlong Gao
2013-05-23  8:47 ` Wanlong Gao [this message]
2013-05-23  8:47 ` [Qemu-devel] [PATCH 4/5] Add qemu_mbind interface for pinning memory to host node Wanlong Gao
2013-05-23  8:47 ` [Qemu-devel] [PATCH 5/5] memory: able to pin guest node memory to host node manually Wanlong Gao
2013-05-24  7:10   ` Wanlong Gao
2013-05-27  2:57     ` Wanlong Gao
2013-05-28  2:27   ` Wanlong Gao
2013-05-30  9:57   ` Wanlong Gao
2013-05-30 18:22     ` Eduardo Habkost
2013-05-31  8:45       ` Wanlong Gao

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=1369298842-6295-3-git-send-email-gaowanlong@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.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).