From d1a16ce9d61cbcf3a56cb578da62370632aa923a Mon Sep 17 00:00:00 2001 From: "Rodrigo L. Rosa" Date: Tue, 9 Aug 2011 11:24:42 -0700 Subject: [PATCH] fix return error msj retval was not correctly propagated --- src/flash/nor/tcl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5