summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Dxe/Image/ImageFile.c6
1 files 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