X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fmdr.c;h=3ecee1c84f779f0dc1e7fed03022884ab208815d;hp=46ad75281065a057fe57c43de2997c033c4bed08;hb=ba2fbe22470915359e1905aaad4c613eacbdf6dc;hpb=fccc55225a7f874ee9d795286e9d92dc051b5b9d diff --git a/src/flash/nor/mdr.c b/src/flash/nor/mdr.c index 46ad752810..3ecee1c84f 100644 --- a/src/flash/nor/mdr.c +++ b/src/flash/nor/mdr.c @@ -258,7 +258,7 @@ static int mdr_write_block(struct flash_bank *bank, uint8_t *buffer, }; retval = target_write_buffer(target, write_algorithm->address, - sizeof(mdr32fx_flash_write_code), (uint8_t *)mdr32fx_flash_write_code); + sizeof(mdr32fx_flash_write_code), mdr32fx_flash_write_code); if (retval != ERROR_OK) return retval;