summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2018-06-20 16:56:52 +0300
committerLeif Lindholm <leif.lindholm@linaro.org>2018-07-02 16:47:33 +0300
commit63de92e662281c00c036766886f918d89718283c (patch)
tree21f5244ea0f8bf8503b643cbdae216bf205ded08
parent82f4eb7c1e800153ad73f7bfd33678e82f166cf4 (diff)
downloadedk2-platforms-devel-dynamictables.tar.xz
Platform/ARM: Juno: Fix variable declarationdevel-dynamictables
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> Reviewed-by: Evan Lloyd <evan.lloyd@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c
index c0086bddb8..db29d1351f 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);