fix(tpm): add clarifying parentheses to version check

This commit is contained in:
2025-11-03 02:37:52 -05:00
parent 8a0b70a99b
commit f740c35568

View File

@@ -85,7 +85,9 @@ impl PlatformTpm {
}; };
// Check if the TPM supports `GetActivePcrBanks`, and if it doesn't return zero. // Check if the TPM supports `GetActivePcrBanks`, and if it doesn't return zero.
if handle.version().major < 1 || handle.version().major == 1 && handle.version().minor < 1 { if (handle.version().major < 1)
|| (handle.version().major == 1 && (handle.version().minor < 1))
{
return Ok(0); return Ok(0);
} }