]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix EFI Option ROM being loaded twice unconditionally.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Jun 2011 05:09:40 +0000 (05:09 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Jun 2011 05:09:40 +0000 (05:09 +0000)
Signed-off-by: niruiyu
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11858 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c

index eb02112d9a0851ae16fdcc34d01e5e47179cc69b..0fd5a3298d5b5957667480d388c88338256e1e72 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PCI Rom supporting funtions implementation for PCI Bus module.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -689,20 +689,6 @@ ProcessOpRomImage (
     Status      = EFI_SUCCESS;\r
     ImageHandle = NULL;\r
 \r
-    if (!EFI_ERROR (Status)) {\r
-      Status = gBS->LoadImage (\r
-                      FALSE,\r
-                      gPciBusDriverBinding.DriverBindingHandle,\r
-                      PciOptionRomImageDevicePath,\r
-                      Buffer,\r
-                      BufferSize,\r
-                      &ImageHandle\r
-                      );\r
-    }\r
-\r
-    //\r
-    // load image and start image\r
-    //\r
      if (!EFI_ERROR (Status)) {\r
       Status = gBS->LoadImage (\r
                       FALSE,\r