MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@ -100,22 +100,22 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
CustomGuidedSectionExtract (
|
||||
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
||||
IN CONST VOID *InputSection,
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
||||
IN CONST VOID *InputSection,
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
);
|
||||
|
||||
//
|
||||
// Module global for the Section Extraction Protocol handle
|
||||
//
|
||||
EFI_HANDLE mSectionExtractionHandle = NULL;
|
||||
EFI_HANDLE mSectionExtractionHandle = NULL;
|
||||
|
||||
//
|
||||
// Module global for the Section Extraction Protocol instance
|
||||
//
|
||||
EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL mCustomGuidedSectionExtractionProtocol = {
|
||||
EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL mCustomGuidedSectionExtractionProtocol = {
|
||||
CustomGuidedSectionExtract
|
||||
};
|
||||
|
||||
@ -205,19 +205,19 @@ EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL mCustomGuidedSectionExtractionProtocol =
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
CustomGuidedSectionExtract (
|
||||
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
||||
IN CONST VOID *InputSection,
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
||||
IN CONST VOID *InputSection,
|
||||
OUT VOID **OutputBuffer,
|
||||
OUT UINTN *OutputSize,
|
||||
OUT UINT32 *AuthenticationStatus
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
VOID *ScratchBuffer;
|
||||
VOID *AllocatedOutputBuffer;
|
||||
UINT32 OutputBufferSize;
|
||||
UINT32 ScratchBufferSize;
|
||||
UINT16 SectionAttribute;
|
||||
EFI_STATUS Status;
|
||||
VOID *ScratchBuffer;
|
||||
VOID *AllocatedOutputBuffer;
|
||||
UINT32 OutputBufferSize;
|
||||
UINT32 ScratchBufferSize;
|
||||
UINT16 SectionAttribute;
|
||||
|
||||
//
|
||||
// Init local variable
|
||||
@ -259,6 +259,7 @@ CustomGuidedSectionExtract (
|
||||
FreePool (ScratchBuffer);
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
*OutputBuffer = AllocatedOutputBuffer;
|
||||
}
|
||||
|
||||
@ -278,9 +279,11 @@ CustomGuidedSectionExtract (
|
||||
if (AllocatedOutputBuffer != NULL) {
|
||||
FreePool (AllocatedOutputBuffer);
|
||||
}
|
||||
|
||||
if (ScratchBuffer != NULL) {
|
||||
FreePool (ScratchBuffer);
|
||||
}
|
||||
|
||||
DEBUG ((DEBUG_ERROR, "Extract guided section Failed - %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
@ -297,7 +300,7 @@ CustomGuidedSectionExtract (
|
||||
//
|
||||
// Set real size of output buffer.
|
||||
//
|
||||
*OutputSize = (UINTN) OutputBufferSize;
|
||||
*OutputSize = (UINTN)OutputBufferSize;
|
||||
|
||||
//
|
||||
// Free unused scratch buffer.
|
||||
@ -344,7 +347,8 @@ SectionExtractionDxeEntry (
|
||||
while (ExtractHandlerNumber-- > 0) {
|
||||
Status = gBS->InstallMultipleProtocolInterfaces (
|
||||
&mSectionExtractionHandle,
|
||||
&ExtractHandlerGuidTable [ExtractHandlerNumber], &mCustomGuidedSectionExtractionProtocol,
|
||||
&ExtractHandlerGuidTable[ExtractHandlerNumber],
|
||||
&mCustomGuidedSectionExtractionProtocol,
|
||||
NULL
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
Reference in New Issue
Block a user