From: Hector Palacios Date: Wed, 19 Nov 2014 16:52:26 +0100 Subject: [U-Boot] [PATCH] cmd_fuse: return CMD_RET_FAILURE on error Message-ID: <1416412346-22682-1-git-send-email-hector.palacios@digi.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fuse drivers, like the mxs_ocotp.c, may return negative error codes but the commands are not allowed to return negative error codes to the shell, otherwise the following error appears: "exit not allowed from main input shell." Signed-off-by: Hector Palacios --- common/cmd_fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_fuse.c b/common/cmd_fuse.c index abab9789b0df..d4bc0f6c94a1 100644 --- a/common/cmd_fuse.c +++ b/common/cmd_fuse.c @@ -128,7 +128,7 @@ static int do_fuse(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) err: puts("ERROR\n"); - return ret; + return CMD_RET_FAILURE; } U_BOOT_CMD(