summaryrefslogtreecommitdiffstats
path: root/StandaloneMmPkg/Core
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2020-12-03 20:52:01 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-01-07 11:13:39 +0000
commiteff8f7a9b425172b5393c3681fa26b95d20ec6d3 (patch)
tree55b521320df1e60c7869256408a826523a0332fe /StandaloneMmPkg/Core
parenteda1ffacf1b4aa2b466c5e30334eb88f7a23dcfc (diff)
downloadedk2-eff8f7a9b425172b5393c3681fa26b95d20ec6d3.tar.gz
edk2-eff8f7a9b425172b5393c3681fa26b95d20ec6d3.tar.bz2
edk2-eff8f7a9b425172b5393c3681fa26b95d20ec6d3.zip
StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCore
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>
Diffstat (limited to 'StandaloneMmPkg/Core')
-rw-r--r--StandaloneMmPkg/Core/StandaloneMmCore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core/StandaloneMmCore.c
index 0ea6b3a7ad..7c3aca9877 100644
--- a/StandaloneMmPkg/Core/StandaloneMmCore.c
+++ b/StandaloneMmPkg/Core/StandaloneMmCore.c
@@ -149,9 +149,10 @@ MmExitBootServiceHandler (
)
{
EFI_HANDLE MmHandle;
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
STATIC BOOLEAN mInExitBootServices = FALSE;
+ Status = EFI_SUCCESS;
if (!mInExitBootServices) {
MmHandle = NULL;
Status = MmInstallProtocolInterface (
@@ -187,9 +188,10 @@ MmReadyToBootHandler (
)
{
EFI_HANDLE MmHandle;
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
STATIC BOOLEAN mInReadyToBoot = FALSE;
+ Status = EFI_SUCCESS;
if (!mInReadyToBoot) {
MmHandle = NULL;
Status = MmInstallProtocolInterface (