From 77b03c7fe7b47ec3b3661f0b6bf17c35287fcf1b Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Mon, 15 Jul 2024 20:06:55 -0300 Subject: [PATCH] Fix style issues Convert tab to spaces; fix opening brace position. Signed-off-by: Fabio Utzig (cherry picked from commit d5e0e89568e6252d713bc5afbd62b1ad6f4de722) --- boot/bootutil/src/loader.c | 3 +-- boot/bootutil/src/swap_move.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c index a095f2d7..805c78e1 100644 --- a/boot/bootutil/src/loader.c +++ b/boot/bootutil/src/loader.c @@ -1281,8 +1281,7 @@ boot_copy_region(struct boot_loader_state *state, blk_off = (abs_off - hdr->ih_hdr_size) & 0xf; } - if (blk_sz > 0) - { + if (blk_sz > 0) { tlv_off = BOOT_TLV_OFF(hdr); if (abs_off + chunk_sz > tlv_off) { /* do not decrypt TLVs */ diff --git a/boot/bootutil/src/swap_move.c b/boot/bootutil/src/swap_move.c index 111e82f0..9901bc62 100644 --- a/boot/bootutil/src/swap_move.c +++ b/boot/bootutil/src/swap_move.c @@ -86,7 +86,7 @@ boot_read_image_header(struct boot_loader_state *state, int slot, off = 0; if (bs && !boot_status_is_reset(bs)) { - boot_find_status(BOOT_CURR_IMG(state), &fap); + boot_find_status(BOOT_CURR_IMG(state), &fap); if (fap == NULL || boot_read_swap_size(fap, &swap_size)) { rc = BOOT_EFLASH; goto done;