mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
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;
|
Size = 0;
|
||||||
Status = gRT->GetVariable (L"BootOrder", &gEfiGlobalVariableGuid, NULL, &Size, NULL);
|
Status = gRT->GetVariable (L"BootOrder", &gEfiGlobalVariableGuid, NULL, &Size, NULL);
|
||||||
if (Status != EFI_NOT_FOUND) {
|
if (Status != EFI_NOT_FOUND) {
|
||||||
return Status;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->LocateProtocol (
|
Status = gBS->LocateProtocol (
|
||||||
@ -377,7 +377,7 @@ SetJunoR1DefaultBootEntries (
|
|||||||
(UINT8*)DefaultBootArgument1, DefaultBootArgument1Size
|
(UINT8*)DefaultBootArgument1, DefaultBootArgument1Size
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
ASSERT (TRUE);
|
ASSERT_EFI_ERROR (Status);
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,7 +390,7 @@ SetJunoR1DefaultBootEntries (
|
|||||||
(UINT8*)DefaultBootArgument2, DefaultBootArgument2Size
|
(UINT8*)DefaultBootArgument2, DefaultBootArgument2Size
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
ASSERT (TRUE);
|
ASSERT_EFI_ERROR (Status);
|
||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ SetJunoR1DefaultBootEntries (
|
|||||||
BootOrder
|
BootOrder
|
||||||
);
|
);
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
if (BootDevicePath != NULL) {
|
if (BootDevicePath != NULL) {
|
||||||
FreePool (BootDevicePath);
|
FreePool (BootDevicePath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user