OvmfPkg: PciHostBridgeDxe: eliminate PCI_HOST_BRIDGE_INSTANCE.RootBridgeNumber

This field was supposed to store the number of root buses created; however
we don't need to keep that count persistently. After the entry point returns,
nothing reads this field.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17961 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Laszlo Ersek 2015-07-14 12:02:25 +00:00 committed by lersek
parent 20f7840e3f
commit 83344cf60b
2 changed files with 1 additions and 4 deletions

View File

@ -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,

View File

@ -52,7 +52,6 @@ typedef enum {
typedef struct {
UINTN Signature;
EFI_HANDLE HostBridgeHandle;
UINTN RootBridgeNumber;
LIST_ENTRY Head;
BOOLEAN ResourceSubmited;
BOOLEAN CanRestarted;