From 8827202ac7cff99d49af8ef7bccf1cfd53599eb3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 22 Oct 2019 19:48:34 +0200 Subject: [PATCH] sys/flashwrite: remove useless line scan-build reported: Value stored to 'flashpage_pos' is never read --- sys/riotboot/flashwrite.c | 1 - 1 file changed, 1 deletion(-) 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)) {