* [Devel] [PATCH] Remove redundant assignment to NamepathOffset
@ 2017-04-18 21:30 Colin King
0 siblings, 0 replies; 3+ messages in thread
From: Colin King @ 2017-04-18 21:30 UTC (permalink / raw)
To: devel
[-- 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Devel] [PATCH] Remove redundant assignment to NamepathOffset
@ 2017-05-04 14:50 Moore, Robert
0 siblings, 0 replies; 3+ messages in thread
From: Moore, Robert @ 2017-05-04 14:50 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]
These all look good. (NamePathOffset and ObjectType changes)
Make one or two pull requests if you'd like.
Thanks,
Bob
> -----Original Message-----
> From: Devel [mailto:devel-bounces(a)acpica.org] On Behalf Of Colin Ian
> King
> Sent: Wednesday, May 3, 2017 6:56 AM
> To: devel(a)acpica.org
> Subject: Re: [Devel] [PATCH] Remove redundant assignment to
> NamepathOffset
>
> On 18/04/17 22:30, Colin King wrote:
> > 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) */
> >
> >
> Any chance this will be reviewed?
> _______________________________________________
> Devel mailing list
> Devel(a)acpica.org
> https://lists.acpica.org/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Devel] [PATCH] Remove redundant assignment to NamepathOffset
@ 2017-05-03 13:56 Colin Ian King
0 siblings, 0 replies; 3+ messages in thread
From: Colin Ian King @ 2017-05-03 13:56 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
On 18/04/17 22:30, Colin King wrote:
> 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) */
>
>
Any chance this will be reviewed?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-04 14:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 21:30 [Devel] [PATCH] Remove redundant assignment to NamepathOffset Colin King
2017-05-03 13:56 Colin Ian King
2017-05-04 14:50 Moore, Robert
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.