diff mbox

[3/5] memory: do not assign node_mem[] to 0 twice

Message ID 1369298842-6295-3-git-send-email-gaowanlong@cn.fujitsu.com
State New
Headers show

Commit Message

Wanlong Gao May 23, 2013, 8:47 a.m. UTC
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 mbox

Patch

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) {