From: Rodrigo L. Rosa Date: Tue, 9 Aug 2011 18:24:42 +0000 (-0700) Subject: fix return error msj X-Git-Tag: v0.6.0-rc1~636 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1a16ce9d61cbcf3a56cb578da62370632aa923a;p=openocd fix return error msj retval was not correctly propagated --- diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 4c64a28d..92b85be7 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -109,7 +109,7 @@ COMMAND_HANDLER(handle_flash_info_command) LOG_ERROR("error retrieving flash info"); } - return ERROR_OK; + return retval; } COMMAND_HANDLER(handle_flash_probe_command) @@ -185,7 +185,7 @@ COMMAND_HANDLER(handle_flash_erase_check_command) erase_state); } - return ERROR_OK; + return retval; } COMMAND_HANDLER(handle_flash_erase_address_command) @@ -355,7 +355,7 @@ COMMAND_HANDLER(handle_flash_protect_command) (int) last, p->bank_number); } - return ERROR_OK; + return retval; } COMMAND_HANDLER(handle_flash_write_image_command)