mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
delete unused variable
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
dba50e5976
commit
16aba10098
@ -447,6 +447,9 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
LangLen = 0;
|
||||
AddNvramVariable(L"wake-failure", &gEfiAppleBootGuid, Attributes, 5, &LangLen);
|
||||
|
||||
//clear OC present
|
||||
DeleteNvramVariable(L"opencore-version", &gEfiAppleBootGuid);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -380,7 +380,7 @@ ResetNativeNvram ()
|
||||
//DbgHeader("ResetNativeNvram: cleanup NVRAM variables");
|
||||
|
||||
NameSize = sizeof (CHAR16);
|
||||
Name = (__typeof__(Name))AllocateZeroPool(NameSize);
|
||||
Name = (__typeof__(Name))AllocatePool(NameSize);
|
||||
if (Name == NULL) {
|
||||
return Status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user