summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 9a1d7b164e..08437aa4f8 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -1316,7 +1316,6 @@ Routine Description:
--*/
{
- EFI_STATUS Status;
EFI_BOOT_MODE BootMode;
DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n"));
@@ -1335,7 +1334,7 @@ Routine Description:
//
// Get current Boot Mode
//
- Status = BdsLibGetBootMode (&BootMode);
+ BootMode = GetBootModeHob ();
DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode));
//