]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwMisc.c
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32Sect...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / FaultTolerantWriteLite / Dxe / FtwMisc.c
index 025ec33f7b229a9cc21ac2d605512eb414da59ff..eb334eaedd917ffcc7a831a532dc3b5b637c73c7 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
@@ -229,7 +229,7 @@ Returns:
     }\r
   }\r
 \r
-  gBS->FreePool (HandleBuffer);\r
+  FreePool (HandleBuffer);\r
   return Status;\r
 }\r
 \r
@@ -329,7 +329,7 @@ Returns:
                                             Ptr\r
                                             );\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
       return Status;\r
     }\r
 \r
@@ -340,7 +340,7 @@ Returns:
   //\r
   Status = FtwEraseBlock (FtwLiteDevice, FvBlock, Lba);\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Buffer);\r
+    FreePool (Buffer);\r
     return EFI_ABORTED;\r
   }\r
   //\r
@@ -352,14 +352,14 @@ Returns:
     Status  = FvBlock->Write (FvBlock, Lba + Index, 0, &Count, Ptr);\r
     if (EFI_ERROR (Status)) {\r
       DEBUG ((EFI_D_FTW_LITE, "FtwLite: FVB Write block - %r\n", Status));\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
       return Status;\r
     }\r
 \r
     Ptr += Count;\r
   }\r
 \r
-  gBS->FreePool (Buffer);\r
+  FreePool (Buffer);\r
 \r
   return Status;\r
 }\r
@@ -433,7 +433,7 @@ Notes:
                                             Ptr\r
                                             );\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
       return Status;\r
     }\r
 \r
@@ -463,7 +463,7 @@ Notes:
             WORKING_BLOCK_INVALID\r
             );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Buffer);\r
+    FreePool (Buffer);\r
     return EFI_ABORTED;\r
   }\r
 \r
@@ -478,7 +478,7 @@ Notes:
             FtwLiteDevice->FtwWorkBlockLba\r
             );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Buffer);\r
+    FreePool (Buffer);\r
     return EFI_ABORTED;\r
   }\r
   //\r
@@ -496,7 +496,7 @@ Notes:
                                           );\r
     if (EFI_ERROR (Status)) {\r
       DEBUG ((EFI_D_FTW_LITE, "FtwLite: FVB Write block - %r\n", Status));\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
       return Status;\r
     }\r
 \r
@@ -505,7 +505,7 @@ Notes:
   //\r
   // Since the memory buffer will not be used, free memory Buffer.\r
   //\r
-  gBS->FreePool (Buffer);\r
+  FreePool (Buffer);\r
 \r
   //\r
   // Update the VALID of the working block\r