summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2018-08-14 15:33:03 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2018-08-14 15:33:03 +0800
commitb1429dae6d20810a64a771d32bbfa5d20bf9a3de (patch)
treecd96510bda79813136380d688145acb668a95824
parentce3fe5ea2186566f2a5b8f255a7bb7ea7820cf3e (diff)
downloadedk2-b1429dae6d20810a64a771d32bbfa5d20bf9a3de.tar.gz
EmbeddedPkg/AbootimgLib: fix unused Status variable
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r--EmbeddedPkg/Library/AbootimgLib/AbootimgLib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/EmbeddedPkg/Library/AbootimgLib/AbootimgLib.c b/EmbeddedPkg/Library/AbootimgLib/AbootimgLib.c
index 7b81d079c..b4cd1e4d2 100644
--- a/EmbeddedPkg/Library/AbootimgLib/AbootimgLib.c
+++ b/EmbeddedPkg/Library/AbootimgLib/AbootimgLib.c
@@ -268,6 +268,7 @@ AllocateRamdisk (
ASSERT (IS_POWER_OF_2 (Header->PageSize));
+ Status = EFI_SUCCESS;
if (Header->RamdiskAddress && Header->RamdiskSize) {
Address = (EFI_PHYSICAL_ADDRESS)(UINTN)Header->RamdiskAddress;
Status = gBS->AllocatePages (