]> git.proxmox.com Git - mirror_qemu.git/commitdiff
pc-bios/s390-ccw: Do not pre-initialize empty array
authorThomas Huth <thuth@redhat.com>
Wed, 28 Aug 2019 12:25:55 +0000 (14:25 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 18 Sep 2019 15:47:27 +0000 (17:47 +0200)
Since commit 339686a358b11a231aa5b6d1424e7a1460d7f277 ("pc-bios/s390-ccw:
zero out bss section"), we are clearing now the BSS in start.S, so there
is no need to pre-initialize the loadparm_str array with zeroes anymore.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c

index a69c73349e8f112d6f6ec1a18b8a9980c5fe6480..a21b38628075b450477af9565fd6eb5b170cab4a 100644 (file)
@@ -17,7 +17,7 @@
 
 char stack[PAGE_SIZE * 8] __attribute__((__aligned__(PAGE_SIZE)));
 static SubChannelId blk_schid = { .one = 1 };
-static char loadparm_str[LOADPARM_LEN + 1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+static char loadparm_str[LOADPARM_LEN + 1];
 QemuIplParameters qipl;
 IplParameterBlock iplb __attribute__((__aligned__(PAGE_SIZE)));
 static bool have_iplb;