mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/ArmJunoDxe: Fixed returned value
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17098 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
372865e1cd
commit
8debfa0c45
|
@ -307,7 +307,7 @@ SetJunoR1DefaultBootEntries (
|
|||
Size = 0;
|
||||
Status = gRT->GetVariable (L"BootOrder", &gEfiGlobalVariableGuid, NULL, &Size, NULL);
|
||||
if (Status != EFI_NOT_FOUND) {
|
||||
return Status;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
|
@ -377,7 +377,7 @@ SetJunoR1DefaultBootEntries (
|
|||
(UINT8*)DefaultBootArgument1, DefaultBootArgument1Size
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (TRUE);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
goto Error;
|
||||
}
|
||||
|
||||
|
@ -390,7 +390,7 @@ SetJunoR1DefaultBootEntries (
|
|||
(UINT8*)DefaultBootArgument2, DefaultBootArgument2Size
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (TRUE);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
goto Error;
|
||||
}
|
||||
|
||||
|
@ -409,7 +409,7 @@ SetJunoR1DefaultBootEntries (
|
|||
BootOrder
|
||||
);
|
||||
|
||||
Error:
|
||||
Error:
|
||||
if (BootDevicePath != NULL) {
|
||||
FreePool (BootDevicePath);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue