diff options
author | Eric Dong <eric.dong@intel.com> | 2016-04-07 21:20:01 +0800 |
---|---|---|
committer | Feng Tian <feng.tian@intel.com> | 2016-04-08 10:40:38 +0800 |
commit | 1e6844dbe4a3475a10c6ef4019ecff8261eee1f2 (patch) | |
tree | bc0921e5139e2163823185d540ea83521f7a2ef8 /SecurityPkg/Library/TcgStorageOpalLib | |
parent | ea2a6eb786c3fa881fdd5146de00c6a48273b4c1 (diff) | |
download | edk2-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.c | 2 |
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.
//
|