From: "wenyi,xie" <xiewenyi2@huawei.com>
To: <devel@edk2.groups.io>, <jian.j.wang@intel.com>,
<gaoliming@byosoft.com.cn>, <hao.a.wu@intel.com>
Cc: <songdongkuang@huawei.com>, <xiewenyi2@huawei.com>
Subject: [PATCH EDK2 v1 1/1] MdeModulePkg/VariablePolicyLib: Remove status checking
Date: Tue, 21 Feb 2023 09:20:48 +0800 [thread overview]
Message-ID: <20230221012048.2497416-2-xiewenyi2@huawei.com> (raw)
In-Reply-To: <20230221012048.2497416-1-xiewenyi2@huawei.com>
Removing status checking as the status is always EFI_SUCCESS.
No functional change.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
---
MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c b/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c
index 82dae67ef50f..fbc192c6ab26 100644
--- a/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c
+++ b/MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c
@@ -782,9 +782,7 @@ InitVariablePolicyLib (
return EFI_ALREADY_STARTED;
}
- if (!EFI_ERROR (Status)) {
- Status = VariablePolicyExtraInit ();
- }
+ Status = VariablePolicyExtraInit ();
if (!EFI_ERROR (Status)) {
// Save an internal pointer to the GetVariableHelper.
@@ -841,9 +839,7 @@ DeinitVariablePolicyLib (
return EFI_NOT_READY;
}
- if (!EFI_ERROR (Status)) {
- Status = VariablePolicyExtraDeinit ();
- }
+ Status = VariablePolicyExtraDeinit ();
if (!EFI_ERROR (Status)) {
mGetVariableHelper = NULL;
--
2.20.1.windows.1
prev parent reply other threads:[~2023-02-21 1:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 1:20 [PATCH EDK2 v1 0/1] MdeModulePkg/VariablePolicyLib: Remove status checking wenyi,xie
2023-02-21 1:20 ` wenyi,xie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230221012048.2497416-2-xiewenyi2@huawei.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox