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>
This commit is contained in:
Eric Dong 2016-04-07 21:20:01 +08:00 committed by Feng Tian
parent ea2a6eb786
commit 1e6844dbe4
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ OpalUtilRevert(
// Try to revert with admin1 // Try to revert with admin1
// //
Ret = OpalAdminRevert(Session, KeepUserData, &MethodStatus); 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. // Device ends the session on successful revert, so only call OpalEndSession when fail.
// //