summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformBootManagerLib
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-20 18:15:17 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-04 08:47:42 +0800
commit30edcbf5d15b27a88c5bc75f029958258401e959 (patch)
tree3d823fef78415a0f54ff861936628de8e7b3209d /OvmfPkg/Library/PlatformBootManagerLib
parent5bcad6cc78fc4236287f51a50ca7657744d6c658 (diff)
downloadedk2-30edcbf5d15b27a88c5bc75f029958258401e959.tar.gz
edk2-30edcbf5d15b27a88c5bc75f029958258401e959.tar.bz2
edk2-30edcbf5d15b27a88c5bc75f029958258401e959.zip
OvmfPkg/PlatformBootManagerLib: Use GetBootModeHob() in HobLib
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib')
-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));
//