All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin King <colin.king at canonical.com>
To: devel@acpica.org
Subject: [Devel] [PATCH] Remove redundant assignment to NamepathOffset
Date: Tue, 18 Apr 2017 22:30:47 +0100	[thread overview]
Message-ID: <20170418213047.18143-1-colin.king@canonical.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

From: Colin Ian King <colin.king(a)canonical.com>

NamepathOffset is being assigned and not used and the a few
statements later it is being re-assigned, hence the earlier
assignment is redundant and can be removed.  Remove it.

Signed-off-by: Colin Ian King <colin.king(a)canonical.com>
---
 source/compiler/asloffset.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/source/compiler/asloffset.c b/source/compiler/asloffset.c
index e3fdf1c91..0964d4fea 100644
--- a/source/compiler/asloffset.c
+++ b/source/compiler/asloffset.c
@@ -250,7 +250,6 @@ LsAmlOffsetWalk (
         }
 
         Length = Op->Asl.FinalAmlLength;
-        NamepathOffset = Gbl_CurrentAmlOffset + Length;
 
         /* Get to the NameSeg/NamePath Op (and length of the name) */
 
-- 
2.11.0


             reply	other threads:[~2017-04-18 21:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 21:30 Colin King [this message]
2017-05-03 13:56 [Devel] [PATCH] Remove redundant assignment to NamepathOffset Colin Ian King
2017-05-04 14:50 Moore, Robert

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-all 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=20170418213047.18143-1-colin.king@canonical.com \
    --to=devel@acpica.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.