diff options
author | Robert Moore <Robert.Moore@intel.com> | 2023-03-29 13:36:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 13:36:40 -0700 |
commit | 47f4495554a12d852e672820361247f2becfd5ab (patch) | |
tree | ddfbc19f633f51cf5bb9572c8110363fd1e7a5f8 | |
parent | f98909b7928cac8c5328e4852ad5a7ea671204fb (diff) | |
parent | 08c5f84a4f75e40efcfe0c2ca67b921070c8643e (diff) | |
download | acpica-47f4495554a12d852e672820361247f2becfd5ab.tar.gz |
Merge pull request #851 from juikim/master
Remove write-only variables
-rw-r--r-- | source/common/dmextern.c | 8 | ||||
-rw-r--r-- | source/compiler/aslrestype2s.c | 18 | ||||
-rw-r--r-- | source/tools/acpisrc/asconvrt.c | 5 |
3 files changed, 0 insertions, 31 deletions
diff --git a/source/common/dmextern.c b/source/common/dmextern.c index 3a413f43d..6827d5e5f 100644 --- a/source/common/dmextern.c +++ b/source/common/dmextern.c @@ -1493,7 +1493,6 @@ AcpiDmMarkExternalConflict ( ACPI_EXTERNAL_LIST *ExternalList = AcpiGbl_ExternalList; char *ExternalPath; char *InternalPath; - char *Temp; ACPI_STATUS Status; @@ -1526,13 +1525,6 @@ AcpiDmMarkExternalConflict ( while (ExternalList) { - Temp = ExternalList->InternalPath; - if ((*ExternalList->InternalPath == AML_ROOT_PREFIX) && - (ExternalList->InternalPath[1])) - { - Temp++; - } - if (!strcmp (ExternalList->InternalPath, InternalPath)) { ExternalList->Flags |= ACPI_EXT_CONFLICTING_DECLARATION; diff --git a/source/compiler/aslrestype2s.c b/source/compiler/aslrestype2s.c index cdb467ff1..054807964 100644 --- a/source/compiler/aslrestype2s.c +++ b/source/compiler/aslrestype2s.c @@ -1550,7 +1550,6 @@ RsDoPinFunctionDescriptor ( UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; - UINT32 PinCount = 0; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; @@ -1668,15 +1667,10 @@ RsDoPinFunctionDescriptor ( default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. - * NOTE: there is no "length" field for this, so from ACPI spec: - * The number of pins in the table can be calculated from: - * PinCount = (Resource Source Name Offset - Pin Table Offset) / 2 - * (implies resource source must immediately follow the pin list.) * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; - PinCount++; /* Case 8: First pin number in list */ @@ -1845,7 +1839,6 @@ RsDoPinConfigDescriptor ( UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; - UINT32 PinCount = 0; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; @@ -1977,15 +1970,10 @@ RsDoPinConfigDescriptor ( default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. - * NOTE: there is no "length" field for this, so from ACPI spec: - * The number of pins in the table can be calculated from: - * PinCount = (Resource Source Name Offset - Pin Table Offset) / 2 - * (implies resource source must immediately follow the pin list.) * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; - PinCount++; /* Case 8: First pin number in list */ @@ -2045,7 +2033,6 @@ RsDoPinGroupDescriptor ( UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; - UINT32 PinCount = 0; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; @@ -2131,15 +2118,10 @@ RsDoPinGroupDescriptor ( default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. - * NOTE: there is no "length" field for this, so from ACPI spec: - * The number of pins in the table can be calculated from: - * PinCount = (Resource Source Name Offset - Pin Table Offset) / 2 - * (implies resource source must immediately follow the pin list.) * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; - PinCount++; /* Case 3: First pin number in list */ diff --git a/source/tools/acpisrc/asconvrt.c b/source/tools/acpisrc/asconvrt.c index ea97400a8..0027e45a9 100644 --- a/source/tools/acpisrc/asconvrt.c +++ b/source/tools/acpisrc/asconvrt.c @@ -1230,7 +1230,6 @@ AsTabify8 ( char *NewSubBuffer; char *CommentEnd = NULL; UINT32 SpaceCount = 0; - UINT32 Column = 0; UINT32 TabCount = 0; UINT32 LastLineTabCount = 0; UINT32 LastLineColumnStart = 0; @@ -1246,7 +1245,6 @@ AsTabify8 ( /* This is a standalone blank line */ FirstNonBlank = NULL; - Column = 0; SpaceCount = 0; TabCount = 0; SubBuffer++; @@ -1285,8 +1283,6 @@ AsTabify8 ( } } - Column++; - /* Check if we are in a comment */ if ((SubBuffer[0] == '*') && @@ -1379,7 +1375,6 @@ AsTabify8 ( FirstNonBlank = NULL; LastLineColumnStart = ThisColumnStart; - Column = 0; SpaceCount = 0; } else |