public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH EDK2 v1 0/1] MdeModulePkg/VariablePolicyLib: Remove status checking
@ 2023-02-21  1:20 wenyi,xie
  2023-02-21  1:20 ` [PATCH EDK2 v1 1/1] " wenyi,xie
  0 siblings, 1 reply; 2+ messages in thread
From: wenyi,xie @ 2023-02-21  1:20 UTC (permalink / raw)
  To: devel, jian.j.wang, gaoliming, hao.a.wu; +Cc: songdongkuang, xiewenyi2

Main Changes :
1.Removing status checking as the status is always EFI_SUCCESS.

Wenyi Xie (1):
  MdeModulePkg/VariablePolicyLib: Remove status checking

 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

-- 
2.20.1.windows.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH EDK2 v1 1/1] MdeModulePkg/VariablePolicyLib: Remove status checking
  2023-02-21  1:20 [PATCH EDK2 v1 0/1] MdeModulePkg/VariablePolicyLib: Remove status checking wenyi,xie
@ 2023-02-21  1:20 ` wenyi,xie
  0 siblings, 0 replies; 2+ messages in thread
From: wenyi,xie @ 2023-02-21  1:20 UTC (permalink / raw)
  To: devel, jian.j.wang, gaoliming, hao.a.wu; +Cc: songdongkuang, xiewenyi2

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-21  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21  1:20 [PATCH EDK2 v1 0/1] MdeModulePkg/VariablePolicyLib: Remove status checking wenyi,xie
2023-02-21  1:20 ` [PATCH EDK2 v1 1/1] " wenyi,xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox