public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "PierreGondois" <pierre.gondois@arm.com>
To: devel@edk2.groups.io, Alexei.Fedorov@arm.com, leif@nuviainc.com,
	sami.mujawar@arm.com
Subject: [PATCH 1/1] DynamicTablesPkg/AmlLib: Remove unused variables
Date: Mon, 15 Feb 2021 18:29:57 +0000	[thread overview]
Message-ID: <20210215182957.14642-1-Pierre.Gondois@arm.com> (raw)

From: Pierre Gondois <Pierre.Gondois@arm.com>

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>
---
 .../Library/Common/AmlLib/NameSpace/AmlNameSpace.c         | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c b/DynamicTablesPkg/Library/Common/AmlLib/NameSpace/AmlNameSpace.c
index 2d055e9fb964..8da47405af85 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)) {
-- 
2.17.1


             reply	other threads:[~2021-02-15 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 18:29 PierreGondois [this message]
2021-02-15 20:04 ` [PATCH 1/1] DynamicTablesPkg/AmlLib: Remove unused variables Leif Lindholm
2021-02-15 23:37   ` Sami Mujawar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210215182957.14642-1-Pierre.Gondois@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox