diff --git a/sys/riotboot/flashwrite.c b/sys/riotboot/flashwrite.c index 148b882f08..b5d2a9b856 100644 --- a/sys/riotboot/flashwrite.c +++ b/sys/riotboot/flashwrite.c @@ -77,7 +77,6 @@ int riotboot_flashwrite_putbytes(riotboot_flashwrite_t *state, flashpage_avail -= to_copy; state->offset += to_copy; - flashpage_pos += to_copy; bytes += to_copy; len -= to_copy; if ((!flashpage_avail) || (!more)) {