summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2017-04-18 10:42:15 +0800
committerGuo Mang <mang.guo@intel.com>2017-04-25 14:25:15 +0800
commitb61636bff9b7558b56e4edefb4c05f680cbe6d5a (patch)
tree03effdb46a4ea3c181dc18e55fceb66b996d0bdf
parent721ec5a53d017b7ef2bd34d3a5e3389a07cdf544 (diff)
downloadedk2-platforms-b61636bff9b7558b56e4edefb4c05f680cbe6d5a.tar.xz
Fix setup assert issue
Debug BIOS will assert if change setup and save. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Guo Mang <mang.guo@intel.com> Reviewed-by: zwei4 <david.wei@intel.com>
-rw-r--r--Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c
index d504995bea..768893ea4b 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c
@@ -1808,7 +1808,6 @@ CheckSystemConfigSave (
SEC_INFOMATION SeCInfo;
UINT8 SecureBootCfg;
UINTN DataSize;
- BOOLEAN SecureBootNotFound;
Status = gBS->LocateProtocol (
&gEfiSeCOperationProtocolGuid,
@@ -1831,7 +1830,6 @@ CheckSystemConfigSave (
// Secure Boot configuration changes
//
DataSize = sizeof (SecureBootCfg);
- SecureBootNotFound = FALSE;
Status = gRT->GetVariable (
EFI_SECURE_BOOT_ENABLE_NAME,
&gEfiSecureBootEnableDisableGuid,
@@ -1841,18 +1839,7 @@ CheckSystemConfigSave (
);
if (EFI_ERROR (Status)) {
- SecureBootNotFound = TRUE;
- }
-
- if (SecureBootNotFound) {
- Status = gRT->GetVariable (
- EFI_SECURE_BOOT_ENABLE_NAME,
- &gEfiSecureBootEnableDisableGuid,
- NULL,
- &DataSize,
- &SecureBootCfg
- );
- ASSERT_EFI_ERROR (Status);
+ SecureBootCfg = 0;
}
if ((SecureBootCfg) != SystemConfigPtr->SecureBoot) {