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)) {