qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pc-bios/s390-ccw: Do not pre-initialize empty array
@ 2019-08-28 12:33 Thomas Huth
  2019-08-28 13:27 ` Christian Borntraeger
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2019-08-28 12:33 UTC (permalink / raw)
  To: Christian Borntraeger, qemu-devel; +Cc: qemu-s390x, Cornelia Huck

We're clearing the BSS in start.S now, so there is no need to
pre-initialize the loadparm_str array with zeroes anymore.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 pc-bios/s390-ccw/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.18.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-28 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-28 12:33 [Qemu-devel] [PATCH] pc-bios/s390-ccw: Do not pre-initialize empty array Thomas Huth
2019-08-28 13:27 ` Christian Borntraeger
2019-08-28 13:42   ` Thomas Huth
2019-08-28 13:47     ` Cornelia Huck
2019-08-28 13:48       ` [Qemu-devel] [qemu-s390x] " Christian Borntraeger
2019-08-28 13:52         ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).