[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/5] pc-bios/s390-ccw: Do not pre-initialize empty array
From: |
Christian Borntraeger |
Subject: |
[PULL 1/5] pc-bios/s390-ccw: Do not pre-initialize empty array |
Date: |
Mon, 23 Sep 2019 09:39:17 +0200 |
From: Thomas Huth <address@hidden>
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 <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
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 a69c73349e8f..a21b38628075 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.21.0
- [PULL 0/5] s390x update, Christian Borntraeger, 2019/09/23
- [PULL 5/5] s390x/cpumodel: Add the z15 name to the description of gen15a, Christian Borntraeger, 2019/09/23
- [PULL 2/5] pc-bios/s390-ccw/net: fix a possible memory leak in get_uuid(), Christian Borntraeger, 2019/09/23
- [PULL 4/5] s390x/kvm: Officially require at least kernel 3.15, Christian Borntraeger, 2019/09/23
- [PULL 1/5] pc-bios/s390-ccw: Do not pre-initialize empty array,
Christian Borntraeger <=
- [PULL 3/5] pc-bios/s390-ccw: Rebuild the s390-netboot.img firmware image, Christian Borntraeger, 2019/09/23
- Re: [PULL 0/5] s390x update, Peter Maydell, 2019/09/23