Skip to content

Commit c625da4

Browse files
committed
zephyr: remove flash_area_read_is_empty()
This function was drooped from MCUBoot's porting API. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
1 parent 210b318 commit c625da4

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

boot/zephyr/flash_map_extended.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,3 @@ uint8_t flash_area_erased_val(const struct flash_area *fap)
115115
(void)fap;
116116
return ERASED_VAL;
117117
}
118-
119-
int flash_area_read_is_empty(const struct flash_area *fa, uint32_t off,
120-
void *dst, uint32_t len)
121-
{
122-
uint8_t i;
123-
uint8_t *u8dst;
124-
int rc;
125-
126-
rc = flash_area_read(fa, off, dst, len);
127-
if (rc) {
128-
return -1;
129-
}
130-
131-
for (i = 0, u8dst = (uint8_t *)dst; i < len; i++) {
132-
if (u8dst[i] != ERASED_VAL) {
133-
return 0;
134-
}
135-
}
136-
137-
return 1;
138-
}

0 commit comments

Comments
 (0)