MdeModulePkg/PciBus: Use shorter global variable name
Remove "Efi" from gEfiIncompatiblePciDeviceSupport to shorten the global variable name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@ -1344,7 +1344,7 @@ UpdatePciInfo (
|
||||
Configuration = NULL;
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
if (gEfiIncompatiblePciDeviceSupport == NULL) {
|
||||
if (gIncompatiblePciDeviceSupport == NULL) {
|
||||
//
|
||||
// It can only be supported after the Incompatible PCI Device
|
||||
// Support Protocol has been installed
|
||||
@ -1352,7 +1352,7 @@ UpdatePciInfo (
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiIncompatiblePciDeviceSupportProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &gEfiIncompatiblePciDeviceSupport
|
||||
(VOID **) &gIncompatiblePciDeviceSupport
|
||||
);
|
||||
}
|
||||
if (Status == EFI_SUCCESS) {
|
||||
@ -1360,15 +1360,15 @@ UpdatePciInfo (
|
||||
// Check whether the device belongs to incompatible devices from protocol or not
|
||||
// If it is , then get its special requirement in the ACPI table
|
||||
//
|
||||
Status = gEfiIncompatiblePciDeviceSupport->CheckDevice (
|
||||
gEfiIncompatiblePciDeviceSupport,
|
||||
PciIoDevice->Pci.Hdr.VendorId,
|
||||
PciIoDevice->Pci.Hdr.DeviceId,
|
||||
PciIoDevice->Pci.Hdr.RevisionID,
|
||||
PciIoDevice->Pci.Device.SubsystemVendorID,
|
||||
PciIoDevice->Pci.Device.SubsystemID,
|
||||
&Configuration
|
||||
);
|
||||
Status = gIncompatiblePciDeviceSupport->CheckDevice (
|
||||
gIncompatiblePciDeviceSupport,
|
||||
PciIoDevice->Pci.Hdr.VendorId,
|
||||
PciIoDevice->Pci.Hdr.DeviceId,
|
||||
PciIoDevice->Pci.Hdr.RevisionID,
|
||||
PciIoDevice->Pci.Device.SubsystemVendorID,
|
||||
PciIoDevice->Pci.Device.SubsystemID,
|
||||
&Configuration
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user