From: Nathael Pajani Date: Mon, 16 Apr 2012 17:16:08 +0000 (+0200) Subject: Fixing return codes X-Git-Tag: v1.0~39 X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=841614834f72d3ca6f6bbdb4183307ea381e25ca;p=soft%2Ftools%2Flpctools Fixing return codes --- diff --git a/isp_commands.c b/isp_commands.c index 35ac62a..565eeda 100644 --- a/isp_commands.c +++ b/isp_commands.c @@ -703,7 +703,7 @@ int isp_cmd_prepare_for_write(int arg_count, char** args) if (ret != 0) { printf("Error when trying to prepare sectors for write operation.\n"); - return -1; + return ret; } printf("Sectors prepared for write operation.\n"); @@ -716,7 +716,7 @@ int isp_cmd_erase(int arg_count, char** args) if (ret != 0) { printf("Error when trying to erase sectors.\n"); - return -1; + return ret; } printf("Sectors erased.\n"); @@ -724,7 +724,6 @@ int isp_cmd_erase(int arg_count, char** args) } - /* FIXME : Temporary place-holder */ int isp_cmd_null(int arg_count, char** args) {