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>
This commit is contained in:
Rebecca Cran 2022-01-13 09:40:51 -07:00 committed by mergify[bot]
parent 45b1612659
commit 007a95055b
1 changed files with 1 additions and 1 deletions

View File

@ -1585,7 +1585,7 @@ AmlCodeGenReturn (
Status = AmlSetFixedArgument (
ObjectNode,
EAmlParseIndexTerm0,
(AML_NODE_HEADER *)ReturnNode
ReturnNode
);
if (EFI_ERROR (Status)) {
ASSERT (0);