From: Dominik Dingel <din...@linux.vnet.ibm.com> load_image_targphys already checks the max size and will return an error code. So the follow-on check will never trigger.
Signed-off-by: Dominik Dingel <din...@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com> Reviewed-by: Thomas Huth <th...@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jf...@linux.vnet.ibm.com> --- hw/s390x/ipl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index b57adbd..521dd94 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -124,9 +124,6 @@ static int s390_ipl_init(SysBusDevice *dev) bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START, 4096); ipl->bios_start_addr = ZIPL_IMAGE_START; - if (bios_size > 4096) { - hw_error("stage1 bootloader is > 4k\n"); - } } g_free(bios_filename); -- 2.1.4