diff options
author | Jeshua Smith <jeshuas@nvidia.com> | 2024-06-26 14:22:24 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-01 09:40:09 +0000 |
commit | 8bf27965dbb94ecccc453c60de3270acf238ea3d (patch) | |
tree | 9a2541c0958d7ea01171f8073b8a1462b30b9639 | |
parent | 469d09d6b25f4ac83dd4ed511db45795aa09d45b (diff) | |
download | edk2-8bf27965dbb94ecccc453c60de3270acf238ea3d.tar.gz |
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.c | 2 | ||||
-rw-r--r-- | DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c | 2 |
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 b990686d40..6118df0549 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 b1a628e419..f2594de2e9 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.
|