From: Jordan Justen Date: Tue, 17 Feb 2015 18:58:05 +0000 (+0000) Subject: OvmfPkg/AcpiPlatformDxe: Assert if AcpiTable protocol is not found X-Git-Tag: edk2-stable201903~10285 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=53596a72cd96f84c7ca83254246f3520a49861b1 OvmfPkg/AcpiPlatformDxe: Assert if AcpiTable protocol is not found Since the protocol is in the depex, there is no reason to expect we might fail to locate the protocol. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16882 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c index 11f0ca8594..331cdc4050 100644 --- a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c +++ b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c @@ -250,9 +250,7 @@ AcpiPlatformEntryPoint ( NULL, (VOID**)&AcpiTable ); - if (EFI_ERROR (Status)) { - return EFI_ABORTED; - } + ASSERT_EFI_ERROR (Status); if (XenDetected ()) { Status = InstallXenTables (AcpiTable); diff --git a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c b/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c index d75394c0f8..a4a71f9c3b 100644 --- a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c +++ b/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c @@ -714,9 +714,7 @@ QemuFwCfgAcpiPlatformEntryPoint ( NULL, (VOID**)&AcpiTable ); - if (EFI_ERROR (Status)) { - return EFI_ABORTED; - } + ASSERT_EFI_ERROR (Status); Status = InstallAllQemuLinkedTables (AcpiTable); return Status;