pms: Fix always true condition

Although this is vendor code, and apparently abandoned vendor code at
that, this is clearly a mistake and always true. It's unclear how to
contribute back to the upstream at this point, alas.

PR: 217745
Reviewed by: imp
This commit is contained in:
Svyatoslav 2025-02-02 09:35:51 -07:00 committed by Warner Losh
parent 64dcfa2593
commit ead758a67a

View file

@ -7217,7 +7217,7 @@ GLOBAL bit32 mpiDekManagementRsp(
agEvent.encryptOperation = OSSA_HW_ENCRYPT_DEK_INVALIDTE;
}
agEvent.status = status;
if (status == OSSA_MPI_ENC_ERR_ILLEGAL_DEK_PARAM || OSSA_MPI_ERR_DEK_MANAGEMENT_DEK_UNWRAP_FAIL)
if (status == OSSA_MPI_ENC_ERR_ILLEGAL_DEK_PARAM || status == OSSA_MPI_ERR_DEK_MANAGEMENT_DEK_UNWRAP_FAIL)
{
agEvent.eq = errorQualifier;
}