Skip to content

Commit d8db025

Browse files
de-nordicnvlsianpu
authored andcommitted
boot/zephyr: Improve badly written comment
The comment on why first parameter to bootutil_img_validate is allowed to be NULL, in boot_image_validation of single_loader.c, has been rewritten. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 907476d commit d8db025

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

boot/zephyr/single_loader.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ boot_image_validate(const struct flash_area *fa_p,
3535
static uint8_t tmpbuf[BOOT_TMPBUF_SZ];
3636
fih_int fih_rc = FIH_FAILURE;
3737

38-
/* NOTE: The enc-state pointer may be NULL only because when there is
39-
* only one image (BOOT_IMAGE_NUMBER == 1), the code that uses the
40-
* pointer, within bootutil_img_validate and down the call path,
41-
* is excluded from compilation.
38+
/* NOTE: The first argument to boot_image_validate, for enc_state pointer,
39+
* is allowed to be NULL only because the single image loader compiles
40+
* with BOOT_IMAGE_NUMBER == 1, which excludes the code that uses
41+
* the pointer from compilation.
4242
*/
4343
/* Validate hash */
4444
FIH_CALL(bootutil_img_validate, fih_rc, NULL, 0, hdr, fa_p, tmpbuf,

0 commit comments

Comments
 (0)