diff mbox series

[U-Boot,v4,02/32] tpm: remove extra spaces between a function and its opening bracket

Message ID 20180515095728.16572-3-miquel.raynal@bootlin.com
State Accepted
Commit fd0bc263d96778673052f4507d16d81228408436
Delegated to: Tom Rini
Headers show
Series Introduce TPMv2.0 support | expand

Commit Message

Miquel Raynal May 15, 2018, 9:56 a.m. UTC
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>
---
 lib/tpm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini May 15, 2018, 3:58 p.m. UTC | #1
On Tue, May 15, 2018 at 11:56:58AM +0200, Miquel Raynal wrote:

> 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>
Simon Glass May 15, 2018, 4:02 p.m. UTC | #2
On 15 May 2018 at 19:56, Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> 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>
> ---
>  lib/tpm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini May 26, 2018, 3:53 p.m. UTC | #3
On Tue, May 15, 2018 at 11:56:58AM +0200, Miquel Raynal wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/lib/tpm.c b/lib/tpm.c
index 0d8cdf9651..58b0a76b97 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -611,7 +611,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;
@@ -1069,7 +1069,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",