]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
DynamicTablesPkg/AmlLib: Remove unused variables
authorPierre Gondois <Pierre.Gondois@arm.com>
Mon, 15 Feb 2021 18:29:57 +0000 (18:29 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 15 Feb 2021 23:31:03 +0000 (23:31 +0000)
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>
DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c

index 2d055e9fb9645766a2f769b4aa304e91c2602107..8da47405af85c2ea51a4e17268545eeea0de5646 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   AML NameSpace.\r
 \r
-  Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>\r
+  Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
@@ -1075,10 +1075,8 @@ AmlEnumeratePathCallback (
   AML_PATH_SEARCH_CONTEXT   * PathSearchContext;\r
 \r
   AML_STREAM                * SearchPathBStream;\r
-  CHAR8                     * SearchedPath;\r
 \r
   AML_STREAM                * CurrNodePathBStream;\r
-  CHAR8                     * CurrNodePath;\r
   UINT32                      CurrNodePathSize;\r
 \r
   ContinueEnum = TRUE;\r
@@ -1123,9 +1121,6 @@ AmlEnumeratePathCallback (
     goto exit_handler;\r
   }\r
 \r
-  SearchedPath = (CHAR8*)AmlStreamGetCurrPos (SearchPathBStream);\r
-  CurrNodePath = (CHAR8*)AmlStreamGetCurrPos (CurrNodePathBStream);\r
-\r
   // Get the raw AML absolute pathname of the current node.\r
   Status1 = AmlGetRawNameSpacePath (Node, 0, CurrNodePathBStream);\r
   if (EFI_ERROR (Status1)) {\r