summaryrefslogtreecommitdiff
path: root/source/compiler/aslrestype2.c
diff options
context:
space:
mode:
authorSaket Dumbre <Saket.Dumbre@intel.com>2023-04-26 10:51:08 -0700
committerSaket Dumbre <Saket.Dumbre@intel.com>2023-04-26 10:51:08 -0700
commit24dc245931b8bfb74c4c4cdc3e1c63dccac0a8fd (patch)
tree468245226e3723e3aaf6f8fa09df37cfc9246b26 /source/compiler/aslrestype2.c
parent9ad08f14189d4c3ba5ae2eb9ea15aac7f4620d44 (diff)
downloadacpica-24dc245931b8bfb74c4c4cdc3e1c63dccac0a8fd.tar.gz
Revert "Fixes for ACPI_FLEX_ARRAY, to eliminate warnings on MSVC"
This reverts commit f98909b7928cac8c5328e4852ad5a7ea671204fb.
Diffstat (limited to 'source/compiler/aslrestype2.c')
-rw-r--r--source/compiler/aslrestype2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler/aslrestype2.c b/source/compiler/aslrestype2.c
index bf6f77ed7..6a1c1cbed 100644
--- a/source/compiler/aslrestype2.c
+++ b/source/compiler/aslrestype2.c
@@ -337,7 +337,7 @@ RsDoInterruptDescriptor (
Descriptor->ExtendedIrq.InterruptCount = 0;
Rover = ACPI_CAST_PTR (AML_RESOURCE,
- (&(Descriptor->ExtendedIrq.u.Interrupts[0])));
+ (&(Descriptor->ExtendedIrq.Interrupts[0])));
/* Process all child initialization nodes */
@@ -466,7 +466,7 @@ RsDoInterruptDescriptor (
RsCreateDwordField (InitializerOp, ACPI_RESTAG_INTERRUPT,
CurrentByteOffset +
- ASL_RESDESC_OFFSET (ExtendedIrq.u.Interrupts[0]));
+ ASL_RESDESC_OFFSET (ExtendedIrq.Interrupts[0]));
}
}
@@ -494,7 +494,7 @@ RsDoInterruptDescriptor (
}
Rnode->BufferLength =
- (ASL_RESDESC_OFFSET (ExtendedIrq.u.Interrupts[0]) -
+ (ASL_RESDESC_OFFSET (ExtendedIrq.Interrupts[0]) -
ASL_RESDESC_OFFSET (ExtendedIrq.DescriptorType))
+ OptionIndex + StringLength;
return (Rnode);