Commit fecf7e87 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

boot: bootutil: loader: Fix some comments



Fixes some comments which had typos or were not formatted correctly

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 3fea62b6
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -788,7 +788,8 @@ boot_image_check(struct boot_loader_state *state, struct image_header *hdr,
    (void)rc;

    /* In the case of ram loading the image has already been decrypted as it is
 * decrypted when copied in ram */
     * 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);
@@ -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;