X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fcore.c;h=4b5fe7dd8471c9c941cf0467bfe49babcd37b885;hp=ab1bf0318ef826da45f732abc18481d144f853fc;hb=f6315d5e5b7b71515ef051711e5f818a42d6b3b3;hpb=ae02a0e51708d292b4dff67c12baef1b62b367fa diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index ab1bf0318e..4b5fe7dd84 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -621,7 +621,6 @@ int flash_write_unlock(struct target *target, struct image *image, { uint32_t buffer_size; uint8_t *buffer; - int section_first; int section_last; uint32_t run_address = sections[section]->base_address + section_offset; uint32_t run_size = sections[section]->size - section_offset; @@ -649,7 +648,6 @@ int flash_write_unlock(struct target *target, struct image *image, } /* collect consecutive sections which fall into the same bank */ - section_first = section; section_last = section; padding[section] = 0; while ((run_address + run_size - 1 < c->base + c->size - 1)