Remove ASSERT here for the zero attributes means deleting preexisting variable.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 24 Dec 2010 07:03:25 +0000 (07:03 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 24 Dec 2010 07:03:25 +0000 (07:03 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11199 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c

index 322a778a834b218795462162c97f4a2b2564c66e..8bf585a72a7156a70d211aabaf24aa9e73057dac 100644 (file)
@@ -1379,7 +1379,6 @@ UpdateVariable (
     // CacheVariable points to the variable in the memory copy of Flash area\r
     // Now let Variable points to the same variable in Flash area.\r
     //\r
-    ASSERT ((Attributes & EFI_VARIABLE_NON_VOLATILE) != 0);\r
     VariableStoreHeader  = (VARIABLE_STORE_HEADER *) ((UINTN) mVariableModuleGlobal->VariableGlobal.NonVolatileVariableBase);\r
     Variable = &NvVariable;    \r
     Variable->StartPtr = GetStartPointer (VariableStoreHeader);\r