aboutsummaryrefslogtreecommitdiff
path: root/lib/tpm.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 11:56:58 +0200
committerTom Rini <trini@konsulko.com>2018-05-25 08:12:40 -0400
commitfd0bc263d96778673052f4507d16d81228408436 (patch)
tree109a920ead0ba306993dbaa89eb6dbd03eee941a /lib/tpm.c
parentba4d2eca96d2f6b516a9e2d4a5f26ac881ff71f5 (diff)
downloadu-boot-fd0bc263d96778673052f4507d16d81228408436.zip
u-boot-fd0bc263d96778673052f4507d16d81228408436.tar.gz
u-boot-fd0bc263d96778673052f4507d16d81228408436.tar.bz2
tpm: remove extra spaces between a function and its opening bracket
Fix following checkpatch.pl issue in TPM-related code: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/tpm.c')
-rw-r--r--lib/tpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tpm.c b/lib/tpm.c
index 1b5c2d0..4ecaf68 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -610,7 +610,7 @@ uint32_t tpm_get_permanent_flags(struct tpm_permanent_flags *pflags)
0x0, 0x0, 0x1, 0x8, /* subcap value */
};
const size_t data_size_offset = TPM_HEADER_SIZE;
- const size_t data_offset = TPM_HEADER_SIZE + sizeof (uint32_t);
+ const size_t data_offset = TPM_HEADER_SIZE + sizeof(uint32_t);
uint8_t response[COMMAND_BUFFER_SIZE];
size_t response_length = sizeof(response);
uint32_t err;
@@ -1068,7 +1068,7 @@ uint32_t tpm_get_random(void *data, uint32_t count)
while (count > 0) {
uint32_t this_bytes = min((size_t)count,
- sizeof (response) - data_offset);
+ sizeof(response) - data_offset);
uint32_t err;
if (pack_byte_string(buf, sizeof(buf), "sd",