}\r
\r
*Data = AllocateZeroPool (*DataSize);\r
- if (Data == NULL) {\r
+ if (*Data == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- FwFormCallBack->NvRead (\r
+ Status = FwFormCallBack->NvRead (\r
FwFormCallBack, \r
BufferStorage->Name,\r
&BufferStorage->Guid,\r
}\r
\r
*Data = AllocateZeroPool (*DataSize);\r
- if (Data == NULL) {\r
+ if (*Data == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
-\r
+ \r
if (ConfigAccess->ThunkContext->NvMapOverride == NULL) {\r
if (ConfigAccess->FormCallbackProtocol == NULL ||\r
ConfigAccess->FormCallbackProtocol->NvWrite == NULL) {\r
\r
if (FormSet->DefaultVarStoreId == 0) {\r
DEBUG ((EFI_D_INFO, "FormSet %g: No Varstore Found\n", &FormSet->Guid));\r
- } else {\r
- // The name of default VARSTORE with a Explicit declaration statement will be updated to L"Setup" to make sure\r
- // the Framework HII Setup module will run correctly. Framework HII Setup module always assumed that default\r
- // VARSTORE to have L"Setup" as name, Formset GUID as GUID. \r
-\r
- DEBUG ((EFI_D_INFO, "FormSet %g: Default Varstore ID (0x%x) N(%s) G(%g)\n", &FormSet->Guid, FormSet->DefaultVarStoreId, DefaultStorage->Name, &DefaultStorage->Guid));\r
-\r
- if (StrCmp (DefaultStorage->Name, FrameworkReservedVarstoreName) != 0) {\r
- DEBUG ((EFI_D_INFO, " : Name is updated from %s to %s.\n", DefaultStorage->Name, FrameworkReservedVarstoreName));\r
- FormSet->OriginalDefaultVarStoreName = DefaultStorage->Name;\r
- DefaultStorage->Name = AllocateCopyPool (StrSize (FrameworkReservedVarstoreName), FrameworkReservedVarstoreName);\r
- }\r
- }\r
+ } \r
\r
return;\r
}\r