From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.96.140; helo=cam-smtp0.cambridge.arm.com; envelope-from=sami.mujawar@arm.com; receiver=edk2-devel@lists.01.org Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9F266202E53FE for ; Wed, 27 Jun 2018 09:48:57 -0700 (PDT) Received: from E107187.Emea.Arm.com (E107187.Emea.Arm.com [10.1.206.129]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id w5RGmrcV010379; Wed, 27 Jun 2018 17:48:55 +0100 From: Sami Mujawar To: edk2-devel@lists.01.org Cc: Arvind Chauhan , Daniil Egranov , Thomas Panakamattam Abraham , leif.lindholm@linaro.org, evan.lloyd@arm.com, Matteo.Carlini@arm.com, Stephanie.Hughes-Fitt@arm.com, nd@arm.com Date: Wed, 27 Jun 2018 17:48:48 +0100 Message-Id: <20180627164848.24124-7-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20180627164848.24124-1-sami.mujawar@arm.com> References: <20180627164848.24124-1-sami.mujawar@arm.com> Subject: [PATCH edk2-platforms v1 6/6][platforms/devel-dynamictables] Platform/ARM: Juno: Fix variable declaration X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 16:48:58 -0000 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 --- 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)'