diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-04-20 18:15:17 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-04 08:47:42 +0800 |
commit | 30edcbf5d15b27a88c5bc75f029958258401e959 (patch) | |
tree | 3d823fef78415a0f54ff861936628de8e7b3209d /OvmfPkg | |
parent | 5bcad6cc78fc4236287f51a50ca7657744d6c658 (diff) | |
download | edk2-platforms-30edcbf5d15b27a88c5bc75f029958258401e959.tar.xz |
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')
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 3 |
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));
//
|