All of lore.kernel.org
 help / color / mirror / Atom feed
* [Devel] [PATCH] Remove redundant assignment to ObjectType
@ 2017-04-18 21:13 Colin King
  0 siblings, 0 replies; only message in thread
From: Colin King @ 2017-04-18 21:13 UTC (permalink / raw)
  To: devel

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

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-18 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 21:13 [Devel] [PATCH] Remove redundant assignment to ObjectType Colin King

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.