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:
Sami Mujawar
2020-12-03 19:49:51 +00:00
committed by mergify[bot]
parent 92df3ca898
commit 7aa9d75211

View File

@@ -2,7 +2,7 @@
Locate, get and update PE/COFF permissions during Standalone MM Locate, get and update PE/COFF permissions during Standalone MM
Foundation Entry point on ARM platforms. 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 SPDX-License-Identifier: BSD-2-Clause-Patent
**/ **/
@@ -121,9 +121,10 @@ LocateStandaloneMmCorePeCoffData (
IN OUT UINTN *TeDataSize IN OUT UINTN *TeDataSize
) )
{ {
EFI_FFS_FILE_HEADER *FileHeader = NULL; EFI_FFS_FILE_HEADER *FileHeader;
EFI_STATUS Status; EFI_STATUS Status;
FileHeader = NULL;
Status = FfsFindNextFile ( Status = FfsFindNextFile (
EFI_FV_FILETYPE_SECURITY_CORE, EFI_FV_FILETYPE_SECURITY_CORE,
BfvAddress, BfvAddress,