From 8debfa0c455c8419008d781fb45e9cb8cae7c625 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 1 Apr 2015 14:50:04 +0000 Subject: [PATCH] ArmPlatformPkg/ArmJunoDxe: Fixed returned value Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17098 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c | 8 ++++---- 1 file 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); } -- 2.39.2