diff options
-rw-r--r-- | flash.h | 1 | ||||
-rw-r--r-- | flashrom.c | 6 |
2 files changed, 0 insertions, 7 deletions
@@ -54,7 +54,6 @@ typedef uintptr_t chipaddr; #define PRIxPTR_WIDTH ((int)(sizeof(uintptr_t)*2)) int register_shutdown(int (*function) (void *data), void *data); -int shutdown_free(void *data); void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len); void programmer_unmap_flash_region(void *virt_addr, size_t len); void programmer_delay(unsigned int usecs); @@ -553,12 +553,6 @@ static bool all_skipped = true; static int check_block_eraser(const struct flashctx *flash, int k, int log); -int shutdown_free(void *data) -{ - free(data); - return 0; -} - /* Register a function to be executed on programmer shutdown. * The advantage over atexit() is that you can supply a void pointer which will * be used as parameter to the registered function upon programmer shutdown. |