From eaaf8693dcbed898c31fe98d7f4d47e6fd36075d Mon Sep 17 00:00:00 2001 From: niruiyu Date: Mon, 20 Jun 2011 05:09:40 +0000 Subject: Fix EFI Option ROM being loaded twice unconditionally. 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 | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c index eb02112d9a..0fd5a3298d 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c @@ -1,7 +1,7 @@ /** @file PCI Rom supporting funtions implementation for PCI Bus module. -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -689,20 +689,6 @@ ProcessOpRomImage ( Status = EFI_SUCCESS; ImageHandle = NULL; - if (!EFI_ERROR (Status)) { - Status = gBS->LoadImage ( - FALSE, - gPciBusDriverBinding.DriverBindingHandle, - PciOptionRomImageDevicePath, - Buffer, - BufferSize, - &ImageHandle - ); - } - - // - // load image and start image - // if (!EFI_ERROR (Status)) { Status = gBS->LoadImage ( FALSE, -- cgit v1.2.3