summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Fischer <moritzf@google.com>2021-10-19 22:21:18 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-20 09:55:52 +0000
commit4fdf843c75d297fe892f989009b3d3e397ccfd55 (patch)
tree303c68523eaeb7291dbb2187ac6b33fa114b6d61
parent37a33f02aa1ab89f392da7d06ec3578fda1b6182 (diff)
downloadedk2-4fdf843c75d297fe892f989009b3d3e397ccfd55.tar.gz
edk2-4fdf843c75d297fe892f989009b3d3e397ccfd55.tar.bz2
edk2-4fdf843c75d297fe892f989009b3d3e397ccfd55.zip
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.c2
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);