Skip to content

Commit

Permalink
vl.c: Remove unnecessary zero-initialization of NUMA globals
Browse files Browse the repository at this point in the history
There's no need to zero-initialize globals, they are automatically
initialized to zero.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
  • Loading branch information
ehabkost committed Feb 23, 2015
1 parent e35704b commit 61b388c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vl.c
Expand Up @@ -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();
Expand Down

0 comments on commit 61b388c

Please sign in to comment.