The PciAddress and PciData members of PCI_ROOT_BRIDGE_INSTANCE are never
read; drop them.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
---
 PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h   | 3 ---
 PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h 
b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h
index 52ff532..f9ef7d8 100644
--- a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h
+++ b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h
@@ -456,9 +456,6 @@ typedef struct {
   UINT64                 MemLimit;    
   UINT64                 IoLimit;     
 
-  UINTN                  PciAddress;
-  UINTN                  PciData;
-  
   EFI_DEVICE_PATH_PROTOCOL                *DevicePath;
   EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL         Io;
 
diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c 
b/PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c
index c7d9f06..7986550 100644
--- a/PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c
+++ b/PcAtChipsetPkg/PciHostBridgeDxe/PciRootBridgeIo.c
@@ -670,9 +670,6 @@ RootBridgeConstructor (
     PrivateData->ResAllocNode[Index].Status    = ResNone;
   }
   
-  PrivateData->PciAddress = 0xCF8;
-  PrivateData->PciData    = 0xCFC;
-
   PrivateData->RootBridgeAttrib = Attri;
   
   PrivateData->Supports    = EFI_PCI_ATTRIBUTE_IDE_PRIMARY_IO | 
EFI_PCI_ATTRIBUTE_IDE_SECONDARY_IO | \
-- 
1.8.3.1



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to