Content-Type: multipart/mixed; boundary="===============0355162449091008641==" MIME-Version: 1.0 From: Colin Ian King Subject: [Devel] NACK: [PATCH] Remove redundant assignment to ObjectType Date: Tue, 18 Apr 2017 22:24:39 +0100 Message-ID: In-Reply-To: 20170418211313.11343-1-colin.king@canonical.com List-ID: To: devel@acpica.org --===============0355162449091008641== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 18/04/17 22:13, Colin King wrote: > From: Colin Ian King > = > 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 > --- > 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 =3D Info->WalkState; > OpInfo =3D AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); > - ObjectType =3D OpInfo->ObjectType; > ObjectType =3D AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); > = > /* Only interested in operators that create new names */ > @@ -885,7 +884,6 @@ AcpiDmXrefDescendingOp ( > = > WalkState =3D Info->WalkState; > OpInfo =3D AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); > - ObjectType =3D OpInfo->ObjectType; > ObjectType =3D AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); > = > if ((!(OpInfo->Flags & AML_NAMED)) && > @@ -1189,7 +1187,6 @@ AcpiDmCommonAscendingOp ( > /* Close scope if necessary */ > = > OpInfo =3D AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); > - ObjectType =3D OpInfo->ObjectType; > ObjectType =3D 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 --===============0355162449091008641==--