Fixed the 'There should be no initialization of a variable as part of its declaration Variable Name' errors reported by the ecc tool.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sami Mujawar <sami.muja...@arm.com> --- Notes: v1: - Fix ecc tool reported issues [SAMI] Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c index a67a09cb6c197a14b376d4a8ef9a90e438efb2bb..35104612e691613f7bbc43511bb921ff111e1fe9 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c @@ -303,9 +303,10 @@ GetStandardNameSpaceObject ( IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; EFI_PLATFORM_REPOSITORY_INFO * PlatformRepo; + Status = EFI_SUCCESS; if ((This == NULL) || (CmObject == NULL)) { ASSERT (This != NULL); ASSERT (CmObject != NULL); @@ -353,9 +354,10 @@ GetArmNameSpaceObject ( IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; EFI_PLATFORM_REPOSITORY_INFO * PlatformRepo; + Status = EFI_SUCCESS; if ((This == NULL) || (CmObject == NULL)) { ASSERT (This != NULL); ASSERT (CmObject != NULL); @@ -437,8 +439,9 @@ GetOemNameSpaceObject ( IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; + Status = EFI_SUCCESS; if ((This == NULL) || (CmObject == NULL)) { ASSERT (This != NULL); ASSERT (CmObject != NULL); -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel