/*++\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
}\r
}\r
\r
- gBS->FreePool (HandleBuffer);\r
+ FreePool (HandleBuffer);\r
return Status;\r
}\r
\r
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
\r
//\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
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
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return Status;\r
}\r
\r
WORKING_BLOCK_INVALID\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return EFI_ABORTED;\r
}\r
\r
FtwLiteDevice->FtwWorkBlockLba\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return EFI_ABORTED;\r
}\r
//\r
);\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
//\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