summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2015-04-01 14:50:04 +0000
committeroliviermartin <oliviermartin@Edk2>2015-04-01 14:50:04 +0000
commit8debfa0c455c8419008d781fb45e9cb8cae7c625 (patch)
treea282eeae72e534019d3aab89e8878f82052261f7
parent372865e1cd2dfdb9b0adbd3070cc371a6340ea12 (diff)
downloadedk2-platforms-8debfa0c455c8419008d781fb45e9cb8cae7c625.tar.xz
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
-rw-r--r--ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
index a6c2c0107d..51686c4616 100644
--- a/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
+++ b/ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
@@ -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);
}