diff options
author | Hector Palacios <hector.palacios@digi.com> | 2014-11-20 09:27:42 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-08 09:35:43 -0500 |
commit | 814b661448d50462c37232a456d3d09450fd9f72 (patch) | |
tree | 2d51b5fa2331cd1dfa6411c0b3e886f2fc15a24f | |
parent | a5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c (diff) | |
download | u-boot-imx-814b661448d50462c37232a456d3d09450fd9f72.zip u-boot-imx-814b661448d50462c37232a456d3d09450fd9f72.tar.gz u-boot-imx-814b661448d50462c37232a456d3d09450fd9f72.tar.bz2 |
cmd_fuse: return CMD_RET_FAILURE on error
Fuse drivers, like the mxs_ocotp.c, may return negative error codes but
the commands are only allowed to return CMD_RET_* enum values to the
shell, otherwise the following error appears:
"exit not allowed from main input shell."
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
-rw-r--r-- | common/cmd_fuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fuse.c b/common/cmd_fuse.c index abab978..d4bc0f6 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( |