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>
This commit is contained in:
Frans Hendriks 2020-04-20 13:58:07 +02:00 committed by Angel Pons
parent 6edfa654d2
commit 988a273396
1 changed files with 3 additions and 2 deletions

View File

@ -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) {