From 4f4d862c1c7232a18347616d94c343c929657fdb Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Mon, 15 Feb 2021 18:29:57 +0000 Subject: DynamicTablesPkg/AmlLib: Remove unused variables Building the DynamicTablesPkg for a NOOPT target fails because unused variables are set. Remove these variables. Fixes: d9800046ea43 Reported-by: Leif Lindholm Signed-off-by: Pierre Gondois Reviewed-by: Leif Lindholm Reviewed-by: Sami Mujawar --- DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'DynamicTablesPkg') diff --git a/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c b/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c index 2d055e9fb9..8da47405af 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c @@ -1,7 +1,7 @@ /** @file AML NameSpace. - Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.
+ Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -1075,10 +1075,8 @@ AmlEnumeratePathCallback ( AML_PATH_SEARCH_CONTEXT * PathSearchContext; AML_STREAM * SearchPathBStream; - CHAR8 * SearchedPath; AML_STREAM * CurrNodePathBStream; - CHAR8 * CurrNodePath; UINT32 CurrNodePathSize; ContinueEnum = TRUE; @@ -1123,9 +1121,6 @@ AmlEnumeratePathCallback ( goto exit_handler; } - SearchedPath = (CHAR8*)AmlStreamGetCurrPos (SearchPathBStream); - CurrNodePath = (CHAR8*)AmlStreamGetCurrPos (CurrNodePathBStream); - // Get the raw AML absolute pathname of the current node. Status1 = AmlGetRawNameSpacePath (Node, 0, CurrNodePathBStream); if (EFI_ERROR (Status1)) { -- cgit v1.2.3