]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
cpu: No need to zero-initialize CPUState::numa_node
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 27 Apr 2015 20:00:31 +0000 (17:00 -0300)
committerAndreas Färber <afaerber@suse.de>
Thu, 9 Jul 2015 13:20:39 +0000 (15:20 +0200)
QOM objects are already zero-filled when instantiated, there's no need
to explicitly set numa_node to 0.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
exec.c

diff --git a/exec.c b/exec.c
index b7f7f9818faca2ff8f047070d42b26561a9cc4a1..44bebe9ee1375d1d638dbb3990e066e587593ab0 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -541,7 +541,6 @@ void cpu_exec_init(CPUArchState *env)
         cpu_index++;
     }
     cpu->cpu_index = cpu_index;
-    cpu->numa_node = 0;
     QTAILQ_INIT(&cpu->breakpoints);
     QTAILQ_INIT(&cpu->watchpoints);
 #ifndef CONFIG_USER_ONLY