From nobody Mon Feb 9 16:19:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1530118155369564.2715026799366; Wed, 27 Jun 2018 09:49:15 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 07F2721CB74A7; Wed, 27 Jun 2018 09:49:00 -0700 (PDT) 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 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; 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 From: Sami Mujawar To: edk2-devel@lists.01.org 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: [edk2] [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: , Cc: nd@arm.com, Arvind Chauhan , Stephanie.Hughes-Fitt@arm.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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/Configur= ationManager.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.c b/Platform/ARM/JunoPkg/ConfigurationManager/Conf= igurationManagerDxe/ConfigurationManager.c index c0086bddb82fb7108aa0d5dccffb6b02c0cb73c4..db29d1351f4e2ae7195887b4c9a= 2833ef078f6f4 100644 --- a/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c +++ b/Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c @@ -267,9 +267,11 @@ GetStandardNameSpaceObject ( IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject ) { - EFI_STATUS Status =3D EFI_SUCCESS; + EFI_STATUS Status; EFI_PLATFORM_REPOSITORY_INFO * PlatformRepo; + UINT32 TableCount; =20 + Status =3D EFI_SUCCESS; if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { ASSERT (This !=3D NULL); ASSERT (CmObject !=3D NULL); @@ -284,8 +286,8 @@ GetStandardNameSpaceObject ( if (PlatformRepo->JunoRevision !=3D JUNO_REVISION_R0) { CmObject->Size =3D sizeof (PlatformRepo->CmAcpiTableList); } else { - UINT32 TableCount =3D sizeof (PlatformRepo->CmAcpiTableList) / - sizeof (PlatformRepo->CmAcpiTableList[0]); + TableCount =3D 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 =3D EFI_SUCCESS; + EFI_STATUS Status; EFI_PLATFORM_REPOSITORY_INFO * PlatformRepo; =20 + Status =3D EFI_SUCCESS; if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { ASSERT (This !=3D NULL); ASSERT (CmObject !=3D NULL); @@ -419,8 +422,9 @@ GetOemNameSpaceObject ( IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject ) { - EFI_STATUS Status =3D EFI_SUCCESS; + EFI_STATUS Status; =20 + Status =3D EFI_SUCCESS; if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { ASSERT (This !=3D NULL); ASSERT (CmObject !=3D NULL); --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel