mirror of https://github.com/acidanthera/audk.git
MdeModulePkg Variable: Use boolean type value instead of expression
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
98eb136437
commit
56d0bd7eb8
|
@ -4210,7 +4210,7 @@ VariableCommonInitialize (
|
|||
VariableStoreHeader = GET_GUID_HOB_DATA (GuidHob);
|
||||
VariableStoreLength = GuidHob->Header.HobLength - sizeof (EFI_HOB_GUID_TYPE);
|
||||
if (GetVariableStoreStatus (VariableStoreHeader) == EfiValid) {
|
||||
if (IsNormalVariableHob == FALSE) {
|
||||
if (!IsNormalVariableHob) {
|
||||
mVariableModuleGlobal->VariableGlobal.HobVariableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) AllocateRuntimeCopyPool ((UINTN) VariableStoreLength, (VOID *) VariableStoreHeader);
|
||||
} else {
|
||||
mVariableModuleGlobal->VariableGlobal.HobVariableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) ConvertNormalVarStorageToAuthVarStorage ((VOID *) VariableStoreHeader);
|
||||
|
|
Loading…
Reference in New Issue