]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32Sect...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / FaultTolerantWriteLite / Dxe / FtwLite.c
index f4c7e9199c9dbb8e23d83420f5e835c8383309ff..a120c7f3dd8fbb2a636ae48d35e0e180d7cbbe63 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2007, Intel Corporation                                                         \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        \r
@@ -236,7 +236,7 @@ Returns:
                                             Ptr\r
                                             );\r
       if (EFI_ERROR (Status)) {\r
-        gBS->FreePool (MyBuffer);\r
+        FreePool (MyBuffer);\r
         return EFI_ABORTED;\r
       }\r
 \r
@@ -256,7 +256,7 @@ Returns:
       MyLength  = FtwLiteDevice->SizeOfSpareBlock;\r
       Status    = Fvb->Read (Fvb, Lba + Index, 0, &MyLength, Ptr);\r
       if (EFI_ERROR (Status)) {\r
-        gBS->FreePool (MyBuffer);\r
+        FreePool (MyBuffer);\r
         return EFI_ABORTED;\r
       }\r
 \r
@@ -276,7 +276,7 @@ Returns:
   SpareBufferSize = FtwLiteDevice->SpareAreaLength;\r
   SpareBuffer     = AllocatePool (SpareBufferSize);\r
   if (SpareBuffer == NULL) {\r
-    gBS->FreePool (MyBuffer);\r
+    FreePool (MyBuffer);\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -291,8 +291,8 @@ Returns:
                                             Ptr\r
                                             );\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (MyBuffer);\r
-      gBS->FreePool (SpareBuffer);\r
+      FreePool (MyBuffer);\r
+      FreePool (SpareBuffer);\r
       return EFI_ABORTED;\r
     }\r
 \r
@@ -314,8 +314,8 @@ Returns:
                                             Ptr\r
                                             );\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (MyBuffer);\r
-      gBS->FreePool (SpareBuffer);\r
+      FreePool (MyBuffer);\r
+      FreePool (SpareBuffer);\r
       return EFI_ABORTED;\r
     }\r
 \r
@@ -324,7 +324,7 @@ Returns:
   //\r
   // Free MyBuffer\r
   //\r
-  gBS->FreePool (MyBuffer);\r
+  FreePool (MyBuffer);\r
 \r
   //\r
   // Set the SpareCompleteD in the FTW record,\r
@@ -337,7 +337,7 @@ Returns:
             SPARE_COMPLETED\r
             );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (SpareBuffer);\r
+    FreePool (SpareBuffer);\r
     return EFI_ABORTED;\r
   }\r
 \r
@@ -349,7 +349,7 @@ Returns:
   //\r
   Status = FtwWriteRecord (FtwLiteDevice, Fvb);\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (SpareBuffer);\r
+    FreePool (SpareBuffer);\r
     return EFI_ABORTED;\r
   }\r
 \r
@@ -371,7 +371,7 @@ Returns:
                                             Ptr\r
                                             );\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (SpareBuffer);\r
+      FreePool (SpareBuffer);\r
       return EFI_ABORTED;\r
     }\r
 \r
@@ -380,7 +380,7 @@ Returns:
   //\r
   // All success.\r
   //\r
-  gBS->FreePool (SpareBuffer);\r
+  FreePool (SpareBuffer);\r
 \r
   DEBUG (\r
     (EFI_D_FTW_LITE,\r