From 2ce854f51511314a537c38c7ec4adfd19f4ccdb7 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Wed, 17 Sep 2008 13:34:18 +0000 Subject: [PATCH] Remove the status code EFI_ALREADY_STARTED to avoid confusion since it is not a possible return status from LoadFile() interface. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5919 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Image/ImageFile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index 4a8d1034a5..4d09f452cc 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -332,7 +332,7 @@ CoreOpenImageFile ( } } - if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) { + if (!EFI_ERROR (Status)) { ImageFileHandle->FreeBuffer = TRUE; goto Done; } @@ -341,7 +341,7 @@ CoreOpenImageFile ( // // Nothing else to try // - DEBUG ((DEBUG_LOAD|DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n")); + DEBUG ((DEBUG_LOAD | DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n")); Status = EFI_NOT_FOUND; Done: @@ -349,7 +349,7 @@ Done: // // If the file was not accessed, clean up // - if (EFI_ERROR (Status) && (Status != EFI_ALREADY_STARTED)) { + if (EFI_ERROR (Status)) { if (ImageFileHandle->FreeBuffer) { // // Free the source buffer if we allocated it