summaryrefslogtreecommitdiff
path: root/source/common
diff options
context:
space:
mode:
authorPiotr Maziarz <piotrx.maziarz@linux.intel.com>2022-02-04 12:28:09 +0100
committerPiotr Maziarz <piotrx.maziarz@linux.intel.com>2022-02-04 12:28:09 +0100
commita127d0202b07f317b7fc50d433f7c6429e56623d (patch)
tree445a3402b5c17782bb8723810fffdd76b612bd2d /source/common
parentbcc26083d5ecde3e3d90946134b68d308de29aec (diff)
downloadacpica-a127d0202b07f317b7fc50d433f7c6429e56623d.tar.gz
iASL: NHLT: Fix variable shadowing
Variable named Capabilities was declared twice in one function that caused variable shadowing. Renaming one of them will fix this issue.
Diffstat (limited to 'source/common')
-rw-r--r--source/common/dmtbdump2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/common/dmtbdump2.c b/source/common/dmtbdump2.c
index b7f619fe6..6e33ad066 100644
--- a/source/common/dmtbdump2.c
+++ b/source/common/dmtbdump2.c
@@ -1757,12 +1757,12 @@ AcpiDmDumpNhlt (
if (CapabilitiesSize > 0)
{
- UINT8* Capabilities = ACPI_ADD_PTR (UINT8, Table, Offset);
+ UINT8* CapabilitiesBuf = ACPI_ADD_PTR (UINT8, Table, Offset);
/* Do the Capabilities array (of bytes) */
AcpiOsPrintf ("\n /* Specific_Config table #%u */\n", j+1);
- Status = AcpiDmDumpTable (TableLength, Offset, Capabilities,
+ Status = AcpiDmDumpTable (TableLength, Offset, CapabilitiesBuf,
CapabilitiesSize, AcpiDmTableInfoNhlt3a);
if (ACPI_FAILURE (Status))
{