summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/tpm_registers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tpm_registers.c b/common/tpm_registers.c
index 6a57fa814f..cd50c8574a 100644
--- a/common/tpm_registers.c
+++ b/common/tpm_registers.c
@@ -643,7 +643,7 @@ size_t tpm_get_burst_size(void)
/* Recognize both original extension and new vendor-specific command codes */
#define IS_CUSTOM_CODE(code) \
((code == CONFIG_EXTENSION_COMMAND) || \
- (code & TPM_CC_VENDOR_BIT_MASK))
+ (code == TPM_CC_VENDOR_BIT_MASK))
static void call_extension_command(struct tpm_cmd_header *tpmh,
size_t *total_size,