]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/ArpDxe/ArpDriver.c
Update network drivers to use FreePool() instead of gBS->FreePool().
[mirror_edk2.git] / MdeModulePkg / Universal / Network / ArpDxe / ArpDriver.c
index 63c7639adadb0fc22995175dd0833e4b6884df3b..d2e7a59ca6f46079d5512c14035ea4b6fb112e11 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ARP driver functions.\r
   \r
-Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at<BR>\r
@@ -401,7 +401,7 @@ ERROR:
   // On error, clean the arp service context data, and free the memory allocated.\r
   //\r
   ArpCleanService (ArpService);\r
-  gBS->FreePool (ArpService);\r
+  FreePool (ArpService);\r
 \r
   return Status;\r
 }\r
@@ -493,7 +493,7 @@ ArpDriverBindingStop (
     //\r
     ArpCleanService (ArpService);\r
 \r
-    gBS->FreePool (ArpService);\r
+    FreePool (ArpService);\r
   } else {\r
 \r
     while (!IsListEmpty (&ArpService->ChildrenList)) {\r
@@ -576,7 +576,7 @@ ArpServiceBindingCreateChild (
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "ArpSBCreateChild: faild to install ARP protocol, %r.\n", Status));\r
 \r
-    gBS->FreePool (Instance);\r
+    FreePool (Instance);\r
     return Status;\r
   }\r
 \r
@@ -631,7 +631,7 @@ ERROR:
     //\r
     // Free the allocated memory.\r
     //\r
-    gBS->FreePool (Instance);\r
+    FreePool (Instance);\r
   }\r
 \r
   return Status;\r
@@ -751,7 +751,7 @@ ArpServiceBindingDestroyChild (
 \r
   gBS->RestoreTPL (OldTpl);\r
 \r
-  gBS->FreePool (Instance);\r
+  FreePool (Instance);\r
 \r
   return Status;\r
 }\r