DynamicTablesPkg: Fix unitialized variable use

In the success case we should return EFI_SUCCESS rather than returning
a potentially unitialized value of Status.

Cc: Sami Mujawar <Sami.Mujawar@arm.com>
Cc: Alexei Fedorov <Alexei.Fedorov@arm.com>
Signed-off-by: Moritz Fischer <moritzf@google.com>
This commit is contained in:
Moritz Fischer 2021-10-19 22:21:18 -07:00 committed by mergify[bot]
parent 37a33f02aa
commit 4fdf843c75
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ LinkRdNode (
*NewRdNode = RdNode;
}
return Status;
return EFI_SUCCESS;
error_handler:
Status1 = AmlDeleteTree ((AML_NODE_HEADER*)RdNode);