From 988a273396bcf2d82366a5f6a2a4dc4bed662bfd Mon Sep 17 00:00:00 2001 From: Frans Hendriks Date: Mon, 20 Apr 2020 13:58:07 +0200 Subject: 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 Change-Id: Ib6373bbf9b666540304e8a2bdaa9add9914476bc Reviewed-on: https://review.coreboot.org/c/coreboot/+/40528 Reviewed-by: Wim Vervoorn Reviewed-by: Stefan Reinauer Reviewed-by: Angel Pons Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/vendorcode/eltan/security/verified_boot/vboot_check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vendorcode/eltan/security') 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) { -- cgit v1.2.3