1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/flashwrite: remove useless line

scan-build reported: Value stored to 'flashpage_pos' is never read
This commit is contained in:
Alexandre Abadie 2019-10-22 19:48:34 +02:00
parent efbd758786
commit 8827202ac7
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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)) {