summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-05 09:00:46 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-05 09:00:46 +0000
commit8d8daecb5435d879c1b1244d51876f37359759a3 (patch)
tree3d6029d477ad22be730704962fc14764b2ed97f1 /EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
parent09caf4071e9224b5a778a7d31c7875af4a0736ba (diff)
downloadedk2-platforms-8d8daecb5435d879c1b1244d51876f37359759a3.tar.xz
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32SectionExtract, NullMemoryTest, PeiMemoryTest, MonotonicCounter modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2542 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c')
-rw-r--r--EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c b/EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
index f4c7e9199c..a120c7f3dd 100644
--- a/EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
+++ b/EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2006, Intel Corporation
+Copyright (c) 2006 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -236,7 +236,7 @@ Returns:
Ptr
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (MyBuffer);
+ FreePool (MyBuffer);
return EFI_ABORTED;
}
@@ -256,7 +256,7 @@ Returns:
MyLength = FtwLiteDevice->SizeOfSpareBlock;
Status = Fvb->Read (Fvb, Lba + Index, 0, &MyLength, Ptr);
if (EFI_ERROR (Status)) {
- gBS->FreePool (MyBuffer);
+ FreePool (MyBuffer);
return EFI_ABORTED;
}
@@ -276,7 +276,7 @@ Returns:
SpareBufferSize = FtwLiteDevice->SpareAreaLength;
SpareBuffer = AllocatePool (SpareBufferSize);
if (SpareBuffer == NULL) {
- gBS->FreePool (MyBuffer);
+ FreePool (MyBuffer);
return EFI_OUT_OF_RESOURCES;
}
@@ -291,8 +291,8 @@ Returns:
Ptr
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (MyBuffer);
- gBS->FreePool (SpareBuffer);
+ FreePool (MyBuffer);
+ FreePool (SpareBuffer);
return EFI_ABORTED;
}
@@ -314,8 +314,8 @@ Returns:
Ptr
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (MyBuffer);
- gBS->FreePool (SpareBuffer);
+ FreePool (MyBuffer);
+ FreePool (SpareBuffer);
return EFI_ABORTED;
}
@@ -324,7 +324,7 @@ Returns:
//
// Free MyBuffer
//
- gBS->FreePool (MyBuffer);
+ FreePool (MyBuffer);
//
// Set the SpareCompleteD in the FTW record,
@@ -337,7 +337,7 @@ Returns:
SPARE_COMPLETED
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (SpareBuffer);
+ FreePool (SpareBuffer);
return EFI_ABORTED;
}
@@ -349,7 +349,7 @@ Returns:
//
Status = FtwWriteRecord (FtwLiteDevice, Fvb);
if (EFI_ERROR (Status)) {
- gBS->FreePool (SpareBuffer);
+ FreePool (SpareBuffer);
return EFI_ABORTED;
}
@@ -371,7 +371,7 @@ Returns:
Ptr
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (SpareBuffer);
+ FreePool (SpareBuffer);
return EFI_ABORTED;
}
@@ -380,7 +380,7 @@ Returns:
//
// All success.
//
- gBS->FreePool (SpareBuffer);
+ FreePool (SpareBuffer);
DEBUG (
(EFI_D_FTW_LITE,