From f875a4f16eef839c9ec2cd35bf3f555556c169bc Mon Sep 17 00:00:00 2001 From: qwang12 Date: Thu, 27 Nov 2008 02:34:39 +0000 Subject: 1) Change the return type of IfrLibFreeUpdateData to VOID. 2) Remove some unused #include and library instance. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6747 6f19259b-4bc3-4df7-8a09-765794883524 --- .../ExtendedIfrSupportLib/ExtendedIfrSupportLib.inf | 7 +++++-- MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c | 16 ++++------------ 2 files changed, 9 insertions(+), 14 deletions(-) (limited to 'MdeModulePkg/Library/ExtendedIfrSupportLib') diff --git a/MdeModulePkg/Library/ExtendedIfrSupportLib/ExtendedIfrSupportLib.inf b/MdeModulePkg/Library/ExtendedIfrSupportLib/ExtendedIfrSupportLib.inf index e0fea38..f7bd39f 100644 --- a/MdeModulePkg/Library/ExtendedIfrSupportLib/ExtendedIfrSupportLib.inf +++ b/MdeModulePkg/Library/ExtendedIfrSupportLib/ExtendedIfrSupportLib.inf @@ -1,6 +1,9 @@ #/** @file -# -# Component name for module UefiEfiIfrSupportLib +# Library instance for ExtendedIfrSupportLib. +# +# This library instance implements the API which is +# related to IFR operations but reference data structures +# that are not defined in UEFI specification, for example EFI_IFR_GUID_LABEL. # # Copyright (c) 2007 - 2008, Intel Corporation.
# All rights reserved. This program and the accompanying materials diff --git a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c index 833b2f0..6e09117 100644 --- a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c +++ b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c @@ -307,25 +307,17 @@ IfrLibInitUpdateData ( @param UpdateData The adding data; - @retval EFI_SUCCESS Resource in UpdateData is released. - @retval EFI_INVALID_PARAMETER UpdateData is NULL. - **/ -EFI_STATUS +VOID IfrLibFreeUpdateData ( IN EFI_HII_UPDATE_DATA *UpdateData ) { - EFI_STATUS Status; - - if (UpdateData == NULL) { - return EFI_INVALID_PARAMETER; - } - - Status = gBS->FreePool (UpdateData->Data); + ASSERT (UpdateData != NULL); + + FreePool (UpdateData->Data); UpdateData->Data = NULL; - return Status; } /** -- cgit v1.1