diff --git a/OvmfPkg/PciHostBridgeDxe/PciHostBridge.c b/OvmfPkg/PciHostBridgeDxe/PciHostBridge.c index a5dbe57eb2..7dda75f0d3 100644 --- a/OvmfPkg/PciHostBridgeDxe/PciHostBridge.c +++ b/OvmfPkg/PciHostBridgeDxe/PciHostBridge.c @@ -56,7 +56,6 @@ EFI_HANDLE mDriverImageHandle; PCI_HOST_BRIDGE_INSTANCE mPciHostBridgeInstanceTemplate = { PCI_HOST_BRIDGE_SIGNATURE, // Signature NULL, // HostBridgeHandle - 0, // RootBridgeNumber {NULL, NULL}, // Head FALSE, // ResourceSubiteed TRUE, // CanRestarted @@ -213,7 +212,6 @@ InitializePciHostBridge ( return EFI_OUT_OF_RESOURCES; } - HostBridge->RootBridgeNumber = 1; InitializeListHead (&HostBridge->Head); Status = gBS->InstallMultipleProtocolInterfaces ( @@ -227,7 +225,7 @@ InitializePciHostBridge ( } for (RootBridgeNumber = 0; - RootBridgeNumber < HostBridge->RootBridgeNumber; + RootBridgeNumber < 1; ++RootBridgeNumber) { Status = InitRootBridge ( (UINT8)RootBridgeNumber, diff --git a/OvmfPkg/PciHostBridgeDxe/PciHostBridge.h b/OvmfPkg/PciHostBridgeDxe/PciHostBridge.h index d2c28bcd20..617c68e318 100644 --- a/OvmfPkg/PciHostBridgeDxe/PciHostBridge.h +++ b/OvmfPkg/PciHostBridgeDxe/PciHostBridge.h @@ -52,7 +52,6 @@ typedef enum { typedef struct { UINTN Signature; EFI_HANDLE HostBridgeHandle; - UINTN RootBridgeNumber; LIST_ENTRY Head; BOOLEAN ResourceSubmited; BOOLEAN CanRestarted;