]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/Ia32/Ia32FtwMisc.c
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32Sect...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / FaultTolerantWriteLite / Dxe / Ia32 / Ia32FtwMisc.c
index 85fa60e3488ba81cedcf6d0a28264618bb40eba9..6425f29b2c475fe5882eb03af9f259995b55a9de 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
@@ -76,10 +76,12 @@ Returns:
   Status = PciRootBridgeIo->Pci.Read (\r
                                   PciRootBridgeIo,\r
                                   EfiPciWidthUint32,\r
-                                  EFI_PCI_ADDRESS (LPC_BUS_NUMBER,\r
-    LPC_DEVICE_NUMBER,\r
-    LPC_IF,\r
-    Offset),\r
+                                  EFI_PCI_ADDRESS (\r
+                                    LPC_BUS_NUMBER,\r
+                                    LPC_DEVICE_NUMBER,\r
+                                    LPC_IF,\r
+                                    Offset\r
+                                    ),\r
                                   1,\r
                                   &Value\r
                                   );\r
@@ -295,7 +297,7 @@ Notes:
   Status = GetSwapState (FtwLiteDevice, &TopSwap);\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "FtwLite: Get Top Swapped status - %r\n", Status));\r
-    gBS->FreePool (Buffer);\r
+    FreePool (Buffer);\r
     return EFI_ABORTED;\r
   }\r
 \r
@@ -305,7 +307,7 @@ Notes:
     //\r
     Status = GetFvbByAddress (FtwLiteDevice->SpareAreaAddress + FTW_BLOCK_SIZE, &BootFvb);\r
     if (EFI_ERROR (Status)) {\r
-      gBS->FreePool (Buffer);\r
+      FreePool (Buffer);\r
       return Status;\r
     }\r
     //\r
@@ -323,7 +325,7 @@ Notes:
                           Ptr\r
                           );\r
       if (EFI_ERROR (Status)) {\r
-        gBS->FreePool (Buffer);\r
+        FreePool (Buffer);\r
         return Status;\r
       }\r
 \r
@@ -345,7 +347,7 @@ Notes:
                                               Ptr\r
                                               );\r
       if (EFI_ERROR (Status)) {\r
-        gBS->FreePool (Buffer);\r
+        FreePool (Buffer);\r
         return Status;\r
       }\r
 \r
@@ -363,7 +365,7 @@ Notes:
   //\r
   Status = FtwEraseSpareBlock (FtwLiteDevice);\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Buffer);\r
+    FreePool (Buffer);\r
     return EFI_ABORTED;\r
   }\r
   //\r
@@ -381,14 +383,14 @@ Notes:
                                             );\r
     if (EFI_ERROR (Status)) {\r
       DEBUG ((EFI_D_FTW_LITE, "FtwLite: FVB Write boot 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
   //\r
   // Clear TopSwap bit\r