Clean up the following module msa files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2579 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2007-04-20 01:29:05 +00:00
parent ebb9ce7a06
commit 627c1d22d9
12 changed files with 106 additions and 290 deletions

View File

@@ -991,7 +991,7 @@ HiiGetDefaultImagePopulateMap (
// Either Defaults/Manufacturing variable exists and appears to be valid.
// The map is read, exit w/ success now.
//
gBS->FreePool (Name16);
FreePool (Name16);
return;
}
@@ -1149,7 +1149,7 @@ HiiGetDefaultImagePopulateMap (
}
}
gBS->FreePool (Name16);
FreePool (Name16);
}
@@ -1570,7 +1570,7 @@ Returns:
//
// Free the old buffer, and assign into our database the latest buffer
//
gBS->FreePool (HandleDatabase->Buffer);
FreePool (HandleDatabase->Buffer);
HandleDatabase->Buffer = OrigTempBuffer;
return EFI_SUCCESS;

View File

@@ -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
@@ -67,7 +67,7 @@ Returns:
//
if (!EFI_ERROR (Status)) {
if (HandleBuffer != NULL) {
gBS->FreePool (HandleBuffer);
FreePool (HandleBuffer);
}
return EFI_DEVICE_ERROR;

View File

@@ -7,7 +7,7 @@
<Version>1.0</Version>
<Abstract>Component description file for HiiDatabase module.</Abstract>
<Description>This module inits HII database and installs HII protocol.</Description>
<Copyright>Copyright (c) 2006, Intel Corporation</Copyright>
<Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>
<License>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
@@ -25,8 +25,9 @@
<LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>BaseLib</Keyword>
</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">
<LibraryClass Usage="ALWAYS_CONSUMED" RecommendedInstanceGuid="bda39d3a-451b-4350-8266-81ab10fa0523">
<Keyword>DebugLib</Keyword>
<HelpText>Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg.</HelpText>
</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>UefiDriverEntryPoint</Keyword>
@@ -62,24 +63,20 @@
<Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>
</PackageDependencies>
<Protocols>
<Protocol Usage="ALWAYS_CONSUMED">
<Protocol Usage="ALWAYS_PRODUCED">
<ProtocolCName>gEfiHiiProtocolGuid</ProtocolCName>
</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">
<Protocol Usage="SOMETIMES_CONSUMED">
<ProtocolCName>gEfiFormCallbackProtocolGuid</ProtocolCName>
</Protocol>
</Protocols>
<Variables>
<Variable Usage="ALWAYS_CONSUMED">
<VariableName>0x004C 0x0061 0x006E</VariableName>
<GuidC_Name>gLanGuid</GuidC_Name>
<Variable Usage="SOMETIMES_CONSUMED">
<VariableName>0x004C 0x0061 0x006E 0x0067</VariableName>
<GuidC_Name>gEfiGlobalVariableGuid</GuidC_Name>
<HelpText>L"Lang" global variable is used as system default language.</HelpText>
</Variable>
</Variables>
<Guids>
<GuidCNames Usage="ALWAYS_CONSUMED">
<GuidCName>gEfiGlobalVariableGuid</GuidCName>
</GuidCNames>
</Guids>
<Externs>
<Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>
<Specification>EDK_RELEASE_VERSION 0x00020000</Specification>

View File

@@ -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
@@ -642,7 +642,7 @@ Returns:
//
// Free the Package Instance
//
gBS->FreePool (PackageInstance);
FreePool (PackageInstance);
//
// If this was the only Handle in the database
@@ -654,7 +654,7 @@ Returns:
// Make the parent->Next point to the current->Next
//
PreviousHandleDatabase->NextHandleDatabase = HandleDatabase->NextHandleDatabase;
gBS->FreePool (HandleDatabase);
FreePool (HandleDatabase);
return EFI_SUCCESS;
}
//

View File

@@ -349,7 +349,7 @@ Returns:
// If the token value is not valid, error out
//
if ((*Reference >= TotalStringCount) && !ResetStrings) {
gBS->FreePool (NewBuffer);
FreePool (NewBuffer);
return EFI_INVALID_PARAMETER;
}
//
@@ -631,7 +631,7 @@ Returns:
//
// Free the previous buffer associated with this handle, and assign the new buffer to the handle
//
gBS->FreePool (HandleDatabase->Buffer);
FreePool (HandleDatabase->Buffer);
HandleDatabase->Buffer = NewBuffer;
break;
}
@@ -710,7 +710,7 @@ Returns:
);
}
gBS->FreePool (LangCodes);
FreePool (LangCodes);
}
return Status;
@@ -764,7 +764,7 @@ Returns:
ASSERT_EFI_ERROR (Status);
}
gBS->FreePool (LangCodes);
FreePool (LangCodes);
return EFI_SUCCESS;
}
@@ -1240,7 +1240,7 @@ HiiCompareLanguage (
// If the Language is the same return success
//
if (CompareMem (LanguageStringLocation, Language, 6) == 0) {
gBS->FreePool (InputString);
FreePool (InputString);
return EFI_SUCCESS;
}
//
@@ -1258,14 +1258,14 @@ HiiCompareLanguage (
// Getting in here means we have a secondary language
//
if (CompareMem (&InputString[Index], Language, 6) == 0) {
gBS->FreePool (InputString);
FreePool (InputString);
return EFI_SUCCESS;
}
}
//
// If nothing was found, return the error
//
gBS->FreePool (OriginalInputString);
FreePool (OriginalInputString);
return EFI_NOT_FOUND;
}