Skip to contentSkip to conversation

Remove redundant assignment to NamepathOffset

PATCH In review Colin King 2 participants 3 messages Apr 18, 2017 – May 4, 2017 ACPI component architecture (acpica)

lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 Remove redundant assignment to NamepathOffset

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(-)
source/compiler/asloffset.c +0 -1
index e3fdf1c91..0964d4fea 100644
@@ -250,7 +250,6 @@ LsAmlOffsetWalk (
         }
 
         Length = Op->Asl.FinalAmlLength;
-        NamepathOffset = Gbl_CurrentAmlOffset + Length;
 
         /* Get to the NameSeg/NamePath Op (and length of the name) */
 
Signature · 1 line
2.11.0
author
#1 lore raw
Quoted 17 lines · Colin King

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(-)
source/compiler/asloffset.c +0 -0
index e3fdf1c91..0964d4fea 100644

source/compiler/asloffset.c LsAmlOffsetWalk ( · line 255

Quoted 7 lines
source/compiler/asloffset.c +0 -1
@@ -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?

#2 lore raw

These all look good. (NamePathOffset and ObjectType changes)

Make one or two pull requests if you'd like.
Thanks,
Bob

Quoted 38 lines

-----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

Quoted 17 lines · Colin King

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(-)
source/compiler/asloffset.c +0 -0
index e3fdf1c91..0964d4fea 100644

source/compiler/asloffset.c LsAmlOffsetWalk ( · line 255

Quoted 7 lines
source/compiler/asloffset.c +0 -1
@@ -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