/*++\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
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (MyBuffer);\r
+ FreePool (MyBuffer);\r
return EFI_ABORTED;\r
}\r
\r
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
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
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
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
//\r
// Free MyBuffer\r
//\r
- gBS->FreePool (MyBuffer);\r
+ FreePool (MyBuffer);\r
\r
//\r
// Set the SpareCompleteD in the FTW record,\r
SPARE_COMPLETED\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (SpareBuffer);\r
+ FreePool (SpareBuffer);\r
return EFI_ABORTED;\r
}\r
\r
//\r
Status = FtwWriteRecord (FtwLiteDevice, Fvb);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (SpareBuffer);\r
+ FreePool (SpareBuffer);\r
return EFI_ABORTED;\r
}\r
\r
Ptr\r
);\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (SpareBuffer);\r
+ FreePool (SpareBuffer);\r
return EFI_ABORTED;\r
}\r
\r
//\r
// All success.\r
//\r
- gBS->FreePool (SpareBuffer);\r
+ FreePool (SpareBuffer);\r
\r
DEBUG (\r
(EFI_D_FTW_LITE,\r