summaryrefslogtreecommitdiff
path: root/util/smmstoretool/fv.c
diff options
context:
space:
mode:
authorSergii Dmytruk <sergii.dmytruk@3mdeb.com>2024-03-10 18:51:45 +0200
committerMartin L Roth <gaumless@gmail.com>2024-03-21 16:14:57 +0000
commitb2d86f1f050df4cc16eeeb3b53bf223f052c9628 (patch)
tree4eabb23229b9d7143a3ce53b5bcf5eae31f94130 /util/smmstoretool/fv.c
parentc8575728b55a20d679a77237cb3622ff2cc6f1a6 (diff)
util/smmstoretool/fv.c: fix 3 formatting issues
Change-Id: If27218df40e58f249769b3d84c0cd4c299e2282b Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81173 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'util/smmstoretool/fv.c')
-rw-r--r--util/smmstoretool/fv.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/smmstoretool/fv.c b/util/smmstoretool/fv.c
index c9d342e162..c6ee913d3c 100644
--- a/util/smmstoretool/fv.c
+++ b/util/smmstoretool/fv.c
@@ -11,7 +11,7 @@
#include "udk2017.h"
// The same as in `smmstore.h` header, which isn't in `commonlib`.
-#define SMM_BLOCK_SIZE (64*1024)
+#define SMM_BLOCK_SIZE (64 * 1024)
static const EFI_GUID EfiVariableGuid = EFI_VARIABLE_GUID;
@@ -33,8 +33,7 @@ static uint16_t calc_checksum(const uint16_t *hdr, size_t size)
return checksum;
}
-bool
-fv_init(struct mem_range_t fv)
+bool fv_init(struct mem_range_t fv)
{
if (fv.length % SMM_BLOCK_SIZE != 0) {
fprintf(stderr,
@@ -152,8 +151,8 @@ static bool check_var_store_hdr(const VARIABLE_STORE_HEADER *hdr,
return true;
}
-bool
-fv_parse(struct mem_range_t fv, struct mem_range_t *var_store, bool *auth_vars)
+bool fv_parse(struct mem_range_t fv, struct mem_range_t *var_store,
+ bool *auth_vars)
{
const EFI_FIRMWARE_VOLUME_HEADER *vol_hdr = (void *)fv.start;
if (!check_fw_vol_hdr(vol_hdr, fv.length)) {