summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Library/TcgStorageOpalLib
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2016-04-07 21:20:01 +0800
committerFeng Tian <feng.tian@intel.com>2016-04-08 10:40:38 +0800
commit1e6844dbe4a3475a10c6ef4019ecff8261eee1f2 (patch)
treebc0921e5139e2163823185d540ea83521f7a2ef8 /SecurityPkg/Library/TcgStorageOpalLib
parentea2a6eb786c3fa881fdd5146de00c6a48273b4c1 (diff)
downloadedk2-1e6844dbe4a3475a10c6ef4019ecff8261eee1f2.tar.gz
edk2-1e6844dbe4a3475a10c6ef4019ecff8261eee1f2.tar.bz2
edk2-1e6844dbe4a3475a10c6ef4019ecff8261eee1f2.zip
SecurityPkg TcgStorageOpalLib: Fix wrong condition judgment.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'SecurityPkg/Library/TcgStorageOpalLib')
-rw-r--r--SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
index d27a9c9b5f..f77fbe25c1 100644
--- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
+++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalUtil.c
@@ -626,7 +626,7 @@ OpalUtilRevert(
// Try to revert with admin1
//
Ret = OpalAdminRevert(Session, KeepUserData, &MethodStatus);
- if (Ret != TcgResultSuccess || MethodStatus == TCG_METHOD_STATUS_CODE_SUCCESS) {
+ if (Ret != TcgResultSuccess || MethodStatus != TCG_METHOD_STATUS_CODE_SUCCESS) {
//
// Device ends the session on successful revert, so only call OpalEndSession when fail.
//