From 841614834f72d3ca6f6bbdb4183307ea381e25ca Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 16 Apr 2012 19:16:08 +0200 Subject: [PATCH] Fixing return codes --- isp_commands.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.43.0