mirror of https://github.com/acidanthera/audk.git
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:
parent
37a33f02aa
commit
4fdf843c75
|
@ -91,7 +91,7 @@ LinkRdNode (
|
|||
*NewRdNode = RdNode;
|
||||
}
|
||||
|
||||
return Status;
|
||||
return EFI_SUCCESS;
|
||||
|
||||
error_handler:
|
||||
Status1 = AmlDeleteTree ((AML_NODE_HEADER*)RdNode);
|
||||
|
|
Loading…
Reference in New Issue