Commit 814b661448d50462c37232a456d3d09450fd9f72

Authored by Hector Palacios
Committed by Tom Rini
1 parent a5a83dc9dc

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -128,7 +128,7 @@
128 128  
129 129 err:
130 130 puts("ERROR\n");
131   - return ret;
  131 + return CMD_RET_FAILURE;
132 132 }
133 133  
134 134 U_BOOT_CMD(