qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 2/7] vl.c: Remove unnecessary zero-initialization of


From: Eduardo Habkost
Subject: [Qemu-devel] [PULL 2/7] vl.c: Remove unnecessary zero-initialization of NUMA globals
Date: Mon, 23 Feb 2015 16:29:09 -0300

There's no need to zero-initialize globals, they are automatically
initialized to zero.

Reviewed-by: Paolo Bonzini <address@hidden>
Acked-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
 vl.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/vl.c b/vl.c
index eca970e..52a49d9 100644
--- a/vl.c
+++ b/vl.c
@@ -2821,14 +2821,6 @@ int main(int argc, char **argv, char **envp)
     cyls = heads = secs = 0;
     translation = BIOS_ATA_TRANSLATION_AUTO;
 
-    for (i = 0; i < MAX_NODES; i++) {
-        numa_info[i].node_mem = 0;
-        numa_info[i].present = false;
-        bitmap_zero(numa_info[i].node_cpu, MAX_CPUMASK_BITS);
-    }
-
-    nb_numa_nodes = 0;
-    max_numa_nodeid = 0;
     nb_nics = 0;
 
     bdrv_init_with_whitelist();
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]