diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:03:07 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-22 12:55:26 +0000 |
commit | b538d71e3230552e2942a83e61dd132693d5241c (patch) | |
tree | ea31733eb4d5f70c023c14beebfdb099234204b4 /src/security/tpm | |
parent | f903ef1d5f90728fac9d6772d9c33f9c5ed1501c (diff) |
security: Remove unnecessary space after casts
Change-Id: Ibd41382d0e0ef58498ac925dc9e10b54a76a798a
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69800
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/tpm')
-rw-r--r-- | src/security/tpm/tss/tcg-1.2/tss.c | 2 | ||||
-rw-r--r-- | src/security/tpm/tss/tcg-1.2/tss_structures.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/security/tpm/tss/tcg-1.2/tss.c b/src/security/tpm/tss/tcg-1.2/tss.c index 6b79aabe87..39c44eca9f 100644 --- a/src/security/tpm/tss/tcg-1.2/tss.c +++ b/src/security/tpm/tss/tcg-1.2/tss.c @@ -51,7 +51,7 @@ static inline int tpm_command_size(const uint8_t *buffer) { uint32_t size; from_tpm_uint32(buffer + sizeof(uint16_t), &size); - return (int) size; + return (int)size; } /* Gets the code field of a TPM command. */ diff --git a/src/security/tpm/tss/tcg-1.2/tss_structures.h b/src/security/tpm/tss/tcg-1.2/tss_structures.h index 4a976c810d..689bb4bbf9 100644 --- a/src/security/tpm/tss/tcg-1.2/tss_structures.h +++ b/src/security/tpm/tss/tcg-1.2/tss_structures.h @@ -21,13 +21,13 @@ #define TPM_NV_PER_READ_STCLEAR (((uint32_t)1)<<31) #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14) -#define TPM_TAG_RQU_COMMAND ((uint16_t) 0xc1) -#define TPM_TAG_RQU_AUTH1_COMMAND ((uint16_t) 0xc2) -#define TPM_TAG_RQU_AUTH2_COMMAND ((uint16_t) 0xc3) +#define TPM_TAG_RQU_COMMAND ((uint16_t)0xc1) +#define TPM_TAG_RQU_AUTH1_COMMAND ((uint16_t)0xc2) +#define TPM_TAG_RQU_AUTH2_COMMAND ((uint16_t)0xc3) -#define TPM_TAG_RSP_COMMAND ((uint16_t) 0xc4) -#define TPM_TAG_RSP_AUTH1_COMMAND ((uint16_t) 0xc5) -#define TPM_TAG_RSP_AUTH2_COMMAND ((uint16_t) 0xc6) +#define TPM_TAG_RSP_COMMAND ((uint16_t)0xc4) +#define TPM_TAG_RSP_AUTH1_COMMAND ((uint16_t)0xc5) +#define TPM_TAG_RSP_AUTH2_COMMAND ((uint16_t)0xc6) typedef uint8_t TSS_BOOL; typedef uint16_t TPM_STRUCTURE_TAG; |