s390x/ipl: remove dead code
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 <dingel@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Message-Id: <1426164834-38648-6-git-send-email-jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
eaec461ccc
commit
7b527b86eb
@ -142,9 +142,6 @@ static int s390_ipl_init(SysBusDevice *dev)
|
|||||||
bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START,
|
bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START,
|
||||||
4096);
|
4096);
|
||||||
ipl->bios_start_addr = ZIPL_IMAGE_START;
|
ipl->bios_start_addr = ZIPL_IMAGE_START;
|
||||||
if (bios_size > 4096) {
|
|
||||||
hw_error("stage1 bootloader is > 4k\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
g_free(bios_filename);
|
g_free(bios_filename);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user