From 2b7d16cf8c416b011d9e133cca7e59823ac2f4ad Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 27 Nov 2008 09:11:41 +0000 Subject: Pass ICC building. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6761 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/PciBusNoEnumerationDxe/PciCommand.c | 8 ++++---- DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'DuetPkg/PciBusNoEnumerationDxe') diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c index 61393ed..6d524c1 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c @@ -121,7 +121,7 @@ Returns: &OldCommand ); - OldCommand |= Command; + OldCommand = (UINT16) (OldCommand | Command); return PciIo->Pci.Write ( PciIo, @@ -165,7 +165,7 @@ Returns: &OldCommand ); - OldCommand &= ~(Command); + OldCommand = (UINT16) (OldCommand & ~(Command)); return PciIo->Pci.Write ( PciIo, @@ -244,7 +244,7 @@ Returns: &OldCommand ); - OldCommand |= Command; + OldCommand = (UINT16) (OldCommand | Command); return PciIo->Pci.Write ( PciIo, @@ -287,7 +287,7 @@ Returns: &OldCommand ); - OldCommand &= ~(Command); + OldCommand = (UINT16) (OldCommand & ~(Command)); return PciIo->Pci.Write ( PciIo, diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c b/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c index a863475..064b634 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c @@ -148,7 +148,6 @@ Returns: UINT16 OffsetPcir; UINT32 RomBarOffset; UINT32 RomBar; - UINT64 Temp; EFI_STATUS retStatus; BOOLEAN FirstCheck; UINT8 *Image; @@ -164,7 +163,6 @@ Returns: Indicator = 0; RomImageSize = 0; RomInMemory = NULL; - Temp = 0; CodeType = 0xFF; // -- cgit v1.1