summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorFrans Hendriks <fhendriks@eltan.com>2020-04-20 13:58:07 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-04-24 08:25:27 +0000
commit988a273396bcf2d82366a5f6a2a4dc4bed662bfd (patch)
treea4f040c454da9923a46c2ffe9c5b2c10c59c74a7 /src/vendorcode
parent6edfa654d2f1474802ab9f0b787dceb74cd58e16 (diff)
vc/eltan/security/verified_boot/vboot_check.c: Correct code style
Remove double space and limit lines to 96 column. BUG=N/A TEST=Build and boot Facebook fbg1701 Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Change-Id: Ib6373bbf9b666540304e8a2bdaa9add9914476bc Reviewed-on: https://review.coreboot.org/c/coreboot/+/40528 Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/eltan/security/verified_boot/vboot_check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vendorcode/eltan/security/verified_boot/vboot_check.c b/src/vendorcode/eltan/security/verified_boot/vboot_check.c
index 174a37824d..ac9d73bf9c 100644
--- a/src/vendorcode/eltan/security/verified_boot/vboot_check.c
+++ b/src/vendorcode/eltan/security/verified_boot/vboot_check.c
@@ -81,7 +81,7 @@ int verified_boot_check_manifest(void)
DIGEST_SIZE;
pre->body_signature.sig_offset = sizeof(struct vb2_signature) +
pre->body_signature.data_size;
- pre->body_signature.sig_size = size - pre->body_signature.data_size;
+ pre->body_signature.sig_size = size - pre->body_signature.data_size;
sd->workbuf_used += size;
memcpy((void *)((void *)&pre->body_signature + (long)sizeof(struct vb2_signature)),
(uint8_t *)CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC, size);
@@ -146,7 +146,8 @@ static void verified_boot_check_buffer(const char *name, void *start, size_t siz
if (start && size) {
- status = vb2_digest_buffer((const uint8_t *)start, size, HASH_ALG, digest, DIGEST_SIZE);
+ status = vb2_digest_buffer((const uint8_t *)start, size, HASH_ALG, digest,
+ DIGEST_SIZE);
if ((CONFIG(VENDORCODE_ELTAN_VBOOT) && memcmp((void *)(
(uint8_t *)CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC +
sizeof(digest) * hash_index), digest, sizeof(digest))) || status) {