summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw
diff options
context:
space:
mode:
authorThomas Huth2019-08-28 14:25:55 +0200
committerThomas Huth2019-09-18 17:47:27 +0200
commit6673ded76c679ef17097782a13754ba905b917f8 (patch)
tree53faee124a5ba07be100fa8dbeed6f9d0a3b0704 /pc-bios/s390-ccw
parenttarget/sparc: Switch to do_transaction_failed() hook (diff)
downloadqemu-6673ded76c679ef17097782a13754ba905b917f8.tar.gz
qemu-6673ded76c679ef17097782a13754ba905b917f8.tar.xz
qemu-6673ded76c679ef17097782a13754ba905b917f8.zip
pc-bios/s390-ccw: Do not pre-initialize empty array
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>
Diffstat (limited to 'pc-bios/s390-ccw')
-rw-r--r--pc-bios/s390-ccw/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index a69c73349e..a21b386280 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
@@ -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;