diff options
author | Moritz Fischer <moritzf@google.com> | 2021-10-19 22:21:18 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-20 09:55:52 +0000 |
commit | 4fdf843c75d297fe892f989009b3d3e397ccfd55 (patch) | |
tree | 303c68523eaeb7291dbb2187ac6b33fa114b6d61 | |
parent | 37a33f02aa1ab89f392da7d06ec3578fda1b6182 (diff) | |
download | edk2-4fdf843c75d297fe892f989009b3d3e397ccfd55.tar.gz |
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>
-rw-r--r-- | DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c index 0bdb6c24c5..e9e1a85ede 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c @@ -91,7 +91,7 @@ LinkRdNode ( *NewRdNode = RdNode;
}
- return Status;
+ return EFI_SUCCESS;
error_handler:
Status1 = AmlDeleteTree ((AML_NODE_HEADER*)RdNode);
|