aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 11:57:03 +0200
committerTom Rini <trini@konsulko.com>2018-05-25 08:12:40 -0400
commit96cc4e31fb8450c8ee3cee7bd5f8580a0c9a2224 (patch)
tree2d7b81f6e40d28402bcece0f8df565ae3d71251d /lib
parent52da18a378d92ed2bce5a33b9655d8cd4ba50a1f (diff)
downloadu-boot-96cc4e31fb8450c8ee3cee7bd5f8580a0c9a2224.zip
u-boot-96cc4e31fb8450c8ee3cee7bd5f8580a0c9a2224.tar.gz
u-boot-96cc4e31fb8450c8ee3cee7bd5f8580a0c9a2224.tar.bz2
tpm: add extra blank lines between declarations and code
Fix following checkpatch.pl issue in TPM-related code: WARNING: Missing a blank line after declarations 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')
-rw-r--r--lib/tpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tpm.c b/lib/tpm.c
index e743935..899528e 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -204,6 +204,7 @@ int unpack_byte_string(const u8 *str, size_t size, const char *format, ...)
static u32 tpm_command_size(const void *command)
{
const size_t command_size_offset = 2;
+
return get_unaligned_be32(command + command_size_offset);
}
@@ -216,6 +217,7 @@ static u32 tpm_command_size(const void *command)
static u32 tpm_return_code(const void *response)
{
const size_t return_code_offset = 6;
+
return get_unaligned_be32(response + return_code_offset);
}
@@ -843,6 +845,7 @@ u32 tpm_terminate_auth_session(u32 auth_handle)
u32 tpm_end_oiap(void)
{
u32 err = TPM_SUCCESS;
+
if (oiap_session.valid)
err = tpm_terminate_auth_session(oiap_session.handle);
return err;