All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Ian King <colin.king at canonical.com>
To: devel@acpica.org
Subject: [Devel] NACK:  [PATCH] Remove redundant assignment to ObjectType
Date: Tue, 18 Apr 2017 22:24:39 +0100	[thread overview]
Message-ID: <e6bb0cd1-d607-a6ce-adef-5ea1389f773e@canonical.com> (raw)
In-Reply-To: 20170418211313.11343-1-colin.king@canonical.com

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

On 18/04/17 22:13, Colin King wrote:
> From: Colin Ian King <colin.king(a)canonical.com>
> 
> There are several occurrances of ObjectType being assigned
> twice successively and the first assignment is clearly
> unncessary and can hence be removed.  Remove the redundant
> assignments.
> 
> Signed-off-by: Colin Ian King <colin.king(a)canonical.com>
> ---
>  source/common/adwalk.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/source/common/adwalk.c b/source/common/adwalk.c
> index 22fbfe416..1841772a7 100644
> --- a/source/common/adwalk.c
> +++ b/source/common/adwalk.c
> @@ -747,7 +747,6 @@ AcpiDmLoadDescendingOp (
>  
>      WalkState = Info->WalkState;
>      OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
> -    ObjectType = OpInfo->ObjectType;
>      ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
>  
>      /* Only interested in operators that create new names */
> @@ -885,7 +884,6 @@ AcpiDmXrefDescendingOp (
>  
>      WalkState = Info->WalkState;
>      OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
> -    ObjectType = OpInfo->ObjectType;
>      ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
>  
>      if ((!(OpInfo->Flags & AML_NAMED)) &&
> @@ -1189,7 +1187,6 @@ AcpiDmCommonAscendingOp (
>      /* Close scope if necessary */
>  
>      OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
> -    ObjectType = OpInfo->ObjectType;
>      ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
>  
>      if (AcpiNsOpensScope (ObjectType))
> 
NACK this patch.  This causes a build warning on newer tool chains, I'll
send and updated patch that addresses the fix to remove a redundant
OpInfo to go with this change.

Colin

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=e6bb0cd1-d607-a6ce-adef-5ea1389f773e@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.