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 15, 2025
1 parent a5d7a4c commit 9fa2367
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 @@ -787,8 +787,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(state, 1, hdr, fap, bs);
Expand Down Expand Up @@ -1347,7 +1348,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 9fa2367

Please sign in to comment.