From a81b1409f9062e723883b151b7da84cf305f80ba Mon Sep 17 00:00:00 2001 From: gdong1 Date: Fri, 24 Dec 2010 07:03:25 +0000 Subject: [PATCH] Remove ASSERT here for the zero attributes means deleting preexisting variable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11199 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 1 - 1 file changed, 1 deletion(-) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 322a778a83..8bf585a72a 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -1379,7 +1379,6 @@ UpdateVariable ( // CacheVariable points to the variable in the memory copy of Flash area // Now let Variable points to the same variable in Flash area. // - ASSERT ((Attributes & EFI_VARIABLE_NON_VOLATILE) != 0); VariableStoreHeader = (VARIABLE_STORE_HEADER *) ((UINTN) mVariableModuleGlobal->VariableGlobal.NonVolatileVariableBase); Variable = &NvVariable; Variable->StartPtr = GetStartPointer (VariableStoreHeader);