mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 10:10:17 +00:00
fix(tpm): add clarifying parentheses to version check
This commit is contained in:
@@ -85,7 +85,9 @@ impl PlatformTpm {
|
||||
};
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user