]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/AcpiPlatformDxe: Assert if AcpiTable protocol is not found
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 17 Feb 2015 18:58:05 +0000 (18:58 +0000)
committerjljusten <jljusten@Edk2>
Tue, 17 Feb 2015 18:58:05 +0000 (18:58 +0000)
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

OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c

index 11f0ca8594025069556e78000ef07b3ec8df6670..331cdc40505930124e032b11e8676bb859b431d2 100644 (file)
@@ -250,9 +250,7 @@ AcpiPlatformEntryPoint (
                   NULL,\r
                   (VOID**)&AcpiTable\r
                   );\r
-  if (EFI_ERROR (Status)) {\r
-    return EFI_ABORTED;\r
-  }\r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   if (XenDetected ()) {\r
     Status = InstallXenTables (AcpiTable);\r
index d75394c0f8a887aafe5687cd0634700c07e882a5..a4a71f9c3b671ebfeddaa4943355ad0a40d0333d 100644 (file)
@@ -714,9 +714,7 @@ QemuFwCfgAcpiPlatformEntryPoint (
                   NULL,\r
                   (VOID**)&AcpiTable\r
                   );\r
-  if (EFI_ERROR (Status)) {\r
-    return EFI_ABORTED;\r
-  }\r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   Status = InstallAllQemuLinkedTables (AcpiTable);\r
   return Status;\r