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:
Olivier Martin 2015-04-01 14:50:04 +00:00 committed by oliviermartin
parent 372865e1cd
commit 8debfa0c45

View File

@ -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);
} }