mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
5990ace9f5
commit
f875a4f16e
|
@ -63,11 +63,8 @@ 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
|
||||
)
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
/** @file
|
||||
HII Library implementation that uses DXE protocols and services.
|
||||
Library instance for ExtendedHiiLib.
|
||||
|
||||
This library instance implements the common HII routines which is
|
||||
related to HII but reference data structures that are not defined in
|
||||
UEFI specification, for example HII_VENDOR_DEVICE_PATH.
|
||||
|
||||
|
||||
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
|
@ -14,10 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
|
||||
|
||||
#include <Uefi.h>
|
||||
|
||||
#include <Protocol/DevicePath.h>
|
||||
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#/** @file
|
||||
#
|
||||
# Library instance for HII common routines.
|
||||
# Library instance for ExtendedHiiLib.
|
||||
#
|
||||
# This library instance implements the common HII routines.
|
||||
# This library instance implements the common HII routines which is
|
||||
# related to HII but reference data structures that are not defined in
|
||||
# UEFI specification, for example HII_VENDOR_DEVICE_PATH.
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation. <BR>
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
|
@ -40,8 +42,6 @@
|
|||
[LibraryClasses]
|
||||
MemoryAllocationLib
|
||||
DebugLib
|
||||
PcdLib
|
||||
UefiRuntimeServicesTableLib
|
||||
DevicePathLib
|
||||
|
||||
[Protocols]
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#/** @file
|
||||
# Library instance for ExtendedIfrSupportLib.
|
||||
#
|
||||
# Component name for module UefiEfiIfrSupportLib
|
||||
# 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. <BR>
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
|
|
|
@ -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;
|
||||
ASSERT (UpdateData != NULL);
|
||||
|
||||
if (UpdateData == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Status = gBS->FreePool (UpdateData->Data);
|
||||
FreePool (UpdateData->Data);
|
||||
UpdateData->Data = NULL;
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue