]> git.sur5r.net Git - openocd/commitdiff
fix return error msj
authorRodrigo L. Rosa <rodrigorosa.LG@gmail.com>
Tue, 9 Aug 2011 18:24:42 +0000 (11:24 -0700)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Aug 2011 18:55:26 +0000 (20:55 +0200)
retval was not correctly propagated

src/flash/nor/tcl.c

index 4c64a28d8458f3ce8a41f187b83dbb1f2af9a3ed..92b85be7e79917527f44e72e217fa329df271bed 100644 (file)
@@ -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)