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

boot: bootutil: Fix usage of flash_area object



Fixes directly accessing an element of this object with one of
the helper functions

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent f523c60d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ boot_status_off(const struct flash_area *fap)
    elem_sz = flash_area_align(fap);

#if MCUBOOT_SWAP_USING_SCRATCH
    if (fap->fa_id == FLASH_AREA_IMAGE_SCRATCH) {
    if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_SCRATCH) {
        off_from_end = boot_scratch_trailer_sz(elem_sz);
    } else {
#endif