]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBus.c
ISA Bus code scrub.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaBusDxe / IsaBus.c
index e189ed7576e33564ef66bc29ef6b53813fdd5c3e..8cf9ac9c2cfc0f2ace0b1572cfe5f921cce20500 100644 (file)
@@ -522,8 +522,8 @@ IsaBusControllerDriverStop (
                       );\r
 \r
       if (!EFI_ERROR (Status)) {\r
-        gBS->FreePool (IsaIoDevice->DevicePath);\r
-        gBS->FreePool (IsaIoDevice);\r
+        FreePool (IsaIoDevice->DevicePath);\r
+        FreePool (IsaIoDevice);\r
       } else {\r
         //\r
         // Re-open PCI IO Protocol on behalf of the child device\r
@@ -660,10 +660,10 @@ Done:
 \r
   if (EFI_ERROR (Status)) {\r
     if (IsaIoDevice->DevicePath != NULL) {\r
-      gBS->FreePool (IsaIoDevice->DevicePath);\r
+      FreePool (IsaIoDevice->DevicePath);\r
     }\r
 \r
-    gBS->FreePool (IsaIoDevice);\r
+    FreePool (IsaIoDevice);\r
   }\r
 \r
   return Status;\r