summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeshua Smith <jeshuas@nvidia.com>2024-06-26 14:22:24 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-01 09:40:09 +0000
commit8bf27965dbb94ecccc453c60de3270acf238ea3d (patch)
tree9a2541c0958d7ea01171f8073b8a1462b30b9639
parent469d09d6b25f4ac83dd4ed511db45795aa09d45b (diff)
downloadedk2-8bf27965dbb94ecccc453c60de3270acf238ea3d.zip
edk2-8bf27965dbb94ecccc453c60de3270acf238ea3d.tar.gz
edk2-8bf27965dbb94ecccc453c60de3270acf238ea3d.tar.bz2
DynamicTablesPkg: AmlLib remove unnecessary cast
Now that CONST input strings to the AmlLib APIs are properly marked as CONST we don't need to cast them to non-CONST before passing them. Signed-off-by: Jeshua Smith <jeshuas@nvidia.com>
-rw-r--r--DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c2
-rw-r--r--DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c
index b990686..6118df0 100644
--- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c
+++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c
@@ -372,7 +372,7 @@ FixupCmn600Info (
}
// Update the CMN600 Device's name.
- Status = AmlDeviceOpUpdateName (DeviceNode, (CHAR8 *)Name);
+ Status = AmlDeviceOpUpdateName (DeviceNode, Name);
if (EFI_ERROR (Status)) {
goto error_handler;
}
diff --git a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c
index b1a628e..f2594de 100644
--- a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c
+++ b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c
@@ -381,7 +381,7 @@ FixupName (
}
// Update the Device's name.
- return AmlDeviceOpUpdateName (DeviceNode, (CHAR8 *)Name);
+ return AmlDeviceOpUpdateName (DeviceNode, Name);
}
/** Fixup the Serial Port Information in the AML tree.