]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/em357.c
Remove unnecessary casts
[openocd] / src / flash / nor / em357.c
index 8f25a89b650a561a5d456bb53fbb5859019efd9d..56f44b38d828d539c6e3cc2740e75b9f4f534661 100644 (file)
@@ -505,7 +505,7 @@ static int em357_write_block(struct flash_bank *bank, uint8_t *buffer,
        ;
 
        retval = target_write_buffer(target, write_algorithm->address,
-                       sizeof(em357_flash_write_code), (uint8_t *)em357_flash_write_code);
+                       sizeof(em357_flash_write_code), em357_flash_write_code);
        if (retval != ERROR_OK)
                return retval;