diff options
Diffstat (limited to 'DuetPkg/PciBusNoEnumerationDxe')
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciCommand.c | 8 | ||||
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c | 2 |
2 files changed, 4 insertions, 6 deletions
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;
//
|