]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the status code EFI_ALREADY_STARTED to avoid confusion since it is not a possi...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Sep 2008 13:34:18 +0000 (13:34 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Sep 2008 13:34:18 +0000 (13:34 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5919 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/Image/ImageFile.c

index 4a8d1034a5412ef29dab2e7538ca56328e201174..4d09f452cc1a31a59643a8af1c403443ad205f67 100644 (file)
@@ -332,7 +332,7 @@ CoreOpenImageFile (
       }\r
     }\r
 \r
-    if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) {\r
+    if (!EFI_ERROR (Status)) {\r
       ImageFileHandle->FreeBuffer = TRUE;\r
       goto Done;\r
     }\r
@@ -341,7 +341,7 @@ CoreOpenImageFile (
   //\r
   // Nothing else to try\r
   //\r
-  DEBUG ((DEBUG_LOAD|DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n"));\r
+  DEBUG ((DEBUG_LOAD | DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n"));\r
   Status = EFI_NOT_FOUND;\r
 \r
 Done:\r
@@ -349,7 +349,7 @@ Done:
   //\r
   // If the file was not accessed, clean up\r
   //\r
-  if (EFI_ERROR (Status) && (Status != EFI_ALREADY_STARTED)) {\r
+  if (EFI_ERROR (Status)) {\r
     if (ImageFileHandle->FreeBuffer) {\r
       //\r
       // Free the source buffer if we allocated it\r