summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg
diff options
context:
space:
mode:
authorRebecca Cran <quic_rcran@quicinc.com>2022-01-13 09:40:51 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-02-02 18:38:55 +0000
commit007a95055b2cad8930caf2ff7615dd0dbb189b6a (patch)
tree8e3bc3fede0318fc09b26c2c8d7b59d788fffa7f /DynamicTablesPkg
parent45b1612659d99eb6d58c8c6e52f2ae227a89cd16 (diff)
downloadedk2-007a95055b2cad8930caf2ff7615dd0dbb189b6a.tar.gz
edk2-007a95055b2cad8930caf2ff7615dd0dbb189b6a.tar.bz2
edk2-007a95055b2cad8930caf2ff7615dd0dbb189b6a.zip
DynamicTablesPkg: Remove redundant cast in AmlCodeGenReturn
In AmlCodeGenReturn, the cast to AML_NODE_HEADER* in the call to AmlSetFixedArgument is redundant because ReturnNode is already a AML_NODE_HEADER* . Signed-off-by: Rebecca Cran <quic_rcran@quicinc.com> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r--DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c
index 2d55db97c7..6229d10e28 100644
--- a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c
+++ b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c
@@ -1585,7 +1585,7 @@ AmlCodeGenReturn (
Status = AmlSetFixedArgument (
ObjectNode,
EAmlParseIndexTerm0,
- (AML_NODE_HEADER *)ReturnNode
+ ReturnNode
);
if (EFI_ERROR (Status)) {
ASSERT (0);