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.mujawar@arm.com>
---
Notes:
v1:
- Fix ecc tool reported issues [SAMI]
Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c
index c0086bddb82fb7108aa0d5dccffb6b02c0cb73c4..db29d1351f4e2ae7195887b4c9a2833ef078f6f4 100644
--- a/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c
+++ b/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c
@@ -267,9 +267,11 @@ GetStandardNameSpaceObject (
IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject
)
{
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
EFI_PLATFORM_REPOSITORY_INFO * PlatformRepo;
+ UINT32 TableCount;
+ Status = EFI_SUCCESS;
if ((This == NULL) || (CmObject == NULL)) {
ASSERT (This != NULL);
ASSERT (CmObject != NULL);
@@ -284,8 +286,8 @@ GetStandardNameSpaceObject (
if (PlatformRepo->JunoRevision != JUNO_REVISION_R0) {
CmObject->Size = sizeof (PlatformRepo->CmAcpiTableList);
} else {
- UINT32 TableCount = sizeof (PlatformRepo->CmAcpiTableList) /
- sizeof (PlatformRepo->CmAcpiTableList[0]);
+ TableCount = sizeof (PlatformRepo->CmAcpiTableList) /
+ sizeof (PlatformRepo->CmAcpiTableList[0]);
/* The last 2 tables in the ACPI table list enable PCIe support.
Reduce the CmObject size so that the PCIe specific ACPI
tables are not installed on Juno R0
@@ -339,9 +341,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);
@@ -419,8 +422,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