Message ID | 1369298842-6295-3-git-send-email-gaowanlong@cn.fujitsu.com |
---|---|
State | New |
Headers | show |
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) {
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(-)