X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciLib.c;h=b3d91a8d3037ee43f85f060211d78a3d27567c9e;hp=a5cea9e52a0d2b590569c7dc63cfd275f505c0c4;hb=863986b3c8e67736d361b68e293d01e6f92f825c;hpb=4d0a30a494599226450bf69ad9d6fc689f61712e diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c index a5cea9e52a..b3d91a8d30 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -290,7 +290,6 @@ DumpResourceMap ( PCI_RESOURCE_NODE *ChildPMem32Node; PCI_RESOURCE_NODE *ChildMem64Node; PCI_RESOURCE_NODE *ChildPMem64Node; - EFI_DEVICE_PATH_TO_TEXT_PROTOCOL *ToText; CHAR16 *Str; DEBUG ((EFI_D_INFO, "PciBus: Resource Map for ")); @@ -309,19 +308,11 @@ DumpResourceMap ( Bridge->BusNumber, Bridge->DeviceNumber, Bridge->FunctionNumber )); } else { - Status = gBS->LocateProtocol ( - &gEfiDevicePathToTextProtocolGuid, - NULL, - (VOID **) &ToText - ); - Str = NULL; - if (!EFI_ERROR (Status)) { - Str = ToText->ConvertDevicePathToText ( - DevicePathFromHandle (Bridge->Handle), - FALSE, - FALSE - ); - } + Str = ConvertDevicePathToText ( + DevicePathFromHandle (Bridge->Handle), + FALSE, + FALSE + ); DEBUG ((EFI_D_INFO, "Root Bridge %s\n", Str != NULL ? Str : L"")); if (Str != NULL) { FreePool (Str);