From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfRD9-0008DD-2N for qemu-devel@nongnu.org; Thu, 23 May 2013 04:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfRD7-0002OJ-S4 for qemu-devel@nongnu.org; Thu, 23 May 2013 04:49:23 -0400 Received: from [222.73.24.84] (port=51104 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfRD7-0002MT-H9 for qemu-devel@nongnu.org; Thu, 23 May 2013 04:49:21 -0400 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r4N8nAgm026970 for ; Thu, 23 May 2013 16:49:10 +0800 From: Wanlong Gao Date: Thu, 23 May 2013 16:47:20 +0800 Message-Id: <1369298842-6295-3-git-send-email-gaowanlong@cn.fujitsu.com> In-Reply-To: <1369298842-6295-1-git-send-email-gaowanlong@cn.fujitsu.com> References: <1369298842-6295-1-git-send-email-gaowanlong@cn.fujitsu.com> Subject: [Qemu-devel] [PATCH 3/5] memory: do not assign node_mem[] to 0 twice List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Wanlong Gao We already assigned node_mem[] to 0 before add numa, so it's unnecessary to assign twice. Signed-off-by: Wanlong Gao --- 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