mirror of https://github.com/acidanthera/audk.git
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:
parent
ea2a6eb786
commit
1e6844dbe4
|
@ -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.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue