[edk2-devel] [PATCH v1 10/25] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCore
Sami Mujawar
sami.mujawar at arm.com
Wed Dec 9 18:46:55 UTC 2020
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 at arm.com>
---
StandaloneMmPkg/Core/StandaloneMmCore.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.c b/StandaloneMmPkg/Core/StandaloneMmCore.c
index 0b3ddbaa6a35e2e609f737a39ace62c2406bf8df..803d7605ece7f6a3400866a04e39acf74cda8144 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 (
--
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#68571): https://edk2.groups.io/g/devel/message/68571
Mute This Topic: https://groups.io/mt/78836538/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list