]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
fixed ECC and Klocwork issues.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciLib.c
index 7a870090cce63cca478b30f93b45bdcc8a54eb4d..486e318fca070644bf1ab6b09f1f589dc22d5835 100644 (file)
@@ -466,7 +466,6 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
                             RootBridgeDev->Handle,\r
                             &AcpiConfig\r
                             );\r
-\r
     if (EFI_ERROR (Status)) {\r
       return Status;\r
     }\r
@@ -551,9 +550,7 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
       PMem64Bridge\r
       );\r
 \r
-    if (AcpiConfig != NULL) {\r
-      FreePool (AcpiConfig);\r
-    }\r
+    FreePool (AcpiConfig);\r
   }\r
 \r
   //\r
@@ -1044,9 +1041,7 @@ PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
       PMem64Bridge\r
       );\r
 \r
-    if (AcpiConfig != NULL) {\r
-      gBS->FreePool (AcpiConfig);\r
-    }\r
+    FreePool (AcpiConfig);\r
   }\r
 \r
   //\r