From 23042a556b73232ac4b620b0a66a53129c916539 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 3 Apr 2009 11:15:52 +0000 Subject: Fix ICC build warning git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8026 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'IntelFrameworkModulePkg/Bus/Pci') diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c index f12b566098..e30277301a 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c @@ -85,7 +85,6 @@ LocalLoadFile2 ( ) { ImageSize = (UINT32) EfiRomHeader->InitializationSize * 512; - ImageBuffer = (UINT8 *) EfiRomHeader + EfiRomHeader->EfiImageHeaderOffset; ImageLength = ImageSize - EfiRomHeader->EfiImageHeaderOffset; @@ -106,7 +105,7 @@ LocalLoadFile2 ( // // Compressed: Uncompress before copying // - Status = gBS->LocateProtocol (&gEfiDecompressProtocolGuid, NULL, &Decompress); + Status = gBS->LocateProtocol (&gEfiDecompressProtocolGuid, NULL, (VOID **) &Decompress); if (EFI_ERROR (Status)) { return EFI_DEVICE_ERROR; } -- cgit v1.2.3