diff options
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 7a870090cc..486e318fca 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -466,7 +466,6 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport ( RootBridgeDev->Handle,
&AcpiConfig
);
-
if (EFI_ERROR (Status)) {
return Status;
}
@@ -551,9 +550,7 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport ( PMem64Bridge
);
- if (AcpiConfig != NULL) {
- FreePool (AcpiConfig);
- }
+ FreePool (AcpiConfig);
}
//
@@ -1044,9 +1041,7 @@ PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport ( PMem64Bridge
);
- if (AcpiConfig != NULL) {
- gBS->FreePool (AcpiConfig);
- }
+ FreePool (AcpiConfig);
}
//
|