Received: from eggs.gnu.org ([2001:4830:134:3::10]:40194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXS55-0004QU-3y for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:17:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXS51-0007RB-T2 for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:17:07 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:58377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXRwq-0004UX-Oy for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:08:37 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Mar 2015 10:08:35 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id E99D22190046 for ; Mon, 16 Mar 2015 10:08:22 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t2GA8W0x8126832 for ; Mon, 16 Mar 2015 10:08:32 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t2GA8Ubs004848 for ; Mon, 16 Mar 2015 04:08:32 -0600 From: Cornelia Huck Date: Mon, 16 Mar 2015 11:08:16 +0100 Message-Id: <1426500498-24129-9-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1426500498-24129-1-git-send-email-cornelia.huck@de.ibm.com> References: <1426500498-24129-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL for-2.3 08/10] s390x/ipl: remove dead code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, Dominik Dingel , agraf@suse.de, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Cornelia Huck From: Dominik Dingel 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 Reviewed-by: Cornelia Huck Reviewed-by: Thomas Huth Signed-off-by: Jens Freimann Message-Id: <1426164834-38648-6-git-send-email-jfrei@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck --- hw/s390x/ipl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index d6c0a49..54d0835 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -142,9 +142,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.3.3