From f91a3a850c65cec0cf3dcde733b1f7cfc4604d9c Mon Sep 17 00:00:00 2001 From: Guo Mang Date: Tue, 18 Apr 2017 10:42:15 +0800 Subject: 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 Reviewed-by: zwei4 --- .../PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/SetupInfoRecords.c') 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) { -- cgit v1.2.3