summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Library
diff options
context:
space:
mode:
authorPierre Gondois <Pierre.Gondois@arm.com>2021-02-15 18:29:57 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-02-15 23:31:03 +0000
commit4f4d862c1c7232a18347616d94c343c929657fdb (patch)
tree5314de0c09a77a7fca46b4285d6f31899034ce22 /DynamicTablesPkg/Library
parent2e1e8c35f3178df95d79da81ac6deec242da74c2 (diff)
downloadedk2-4f4d862c1c7232a18347616d94c343c929657fdb.tar.gz
edk2-4f4d862c1c7232a18347616d94c343c929657fdb.tar.bz2
edk2-4f4d862c1c7232a18347616d94c343c929657fdb.zip
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 <leif@nuviainc.com> Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'DynamicTablesPkg/Library')
-rw-r--r--DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c7
1 files changed, 1 insertions, 6 deletions
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.<BR>
+ Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>
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)) {