summaryrefslogtreecommitdiff
path: root/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-02-17 18:58:05 +0000
committerjljusten <jljusten@Edk2>2015-02-17 18:58:05 +0000
commit53596a72cd96f84c7ca83254246f3520a49861b1 (patch)
tree927c400f2d9fdda5e9296796d0b795e7989f21c2 /OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
parent460e1e0dab8947ae81089982ea1edaa655efb052 (diff)
downloadedk2-platforms-53596a72cd96f84c7ca83254246f3520a49861b1.tar.xz
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 <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16882 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c')
-rw-r--r--OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c4
1 files changed, 1 insertions, 3 deletions
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);