mirror of https://github.com/acidanthera/audk.git
StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCoreEntryPoint
Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150) Fix ECC error "[5007] There should be no initialization of a variable as part of its declaration Variable." Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
92df3ca898
commit
7aa9d75211
|
@ -2,7 +2,7 @@
|
|||
Locate, get and update PE/COFF permissions during Standalone MM
|
||||
Foundation Entry point on ARM platforms.
|
||||
|
||||
Copyright (c) 2017 - 2018, ARM Ltd. All rights reserved.<BR>
|
||||
Copyright (c) 2017 - 2021, Arm Ltd. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
@ -121,9 +121,10 @@ LocateStandaloneMmCorePeCoffData (
|
|||
IN OUT UINTN *TeDataSize
|
||||
)
|
||||
{
|
||||
EFI_FFS_FILE_HEADER *FileHeader = NULL;
|
||||
EFI_FFS_FILE_HEADER *FileHeader;
|
||||
EFI_STATUS Status;
|
||||
|
||||
FileHeader = NULL;
|
||||
Status = FfsFindNextFile (
|
||||
EFI_FV_FILETYPE_SECURITY_CORE,
|
||||
BfvAddress,
|
||||
|
|
Loading…
Reference in New Issue