Skip to content

Commit

Permalink
boot: bootutil: loader: Fix some comments
Browse files Browse the repository at this point in the history
Fixes some comments which had typos or were not formatted correctly

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm committed Jan 10, 2025
1 parent eb06021 commit 546b5b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions boot/bootutil/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,9 @@ boot_image_check(struct boot_loader_state *state, struct image_header *hdr,
(void)bs;
(void)rc;

/* In the case of ram loading the image has already been decrypted as it is
* decrypted when copied in ram */
/* In the case of ram loading the image has already been decrypted as it is
* decrypted when copied in ram
*/
#if defined(MCUBOOT_ENC_IMAGES) && !defined(MCUBOOT_RAM_LOAD)
if (MUST_DECRYPT(fap, BOOT_CURR_IMG(state), hdr)) {
rc = boot_enc_load(BOOT_CURR_ENC(state), 1, hdr, fap, bs);
Expand Down Expand Up @@ -1317,7 +1318,7 @@ boot_copy_region(struct boot_loader_state *state,

#ifdef MCUBOOT_ENC_IMAGES
/* If only copy, then does not matter if header indicates need for
* encryptio/decryptio, we just copy data. */
* encryption/decryption, we just copy data. */
if (!only_copy && IS_ENCRYPTED(hdr)) {
#if defined(MCUBOOT_SWAP_USING_OFFSET)
uint32_t abs_off = off - sector_off + bytes_copied;
Expand Down

0 comments on commit 546b5b5

Please sign in to comment.