Skip to content

Commit

Permalink
cmd_fuse: return CMD_RET_FAILURE on error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Benoît Thébaudeau <[email protected]>
  • Loading branch information
hpalacio authored and trini committed Dec 8, 2014
1 parent a5a83dc commit 814b661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cmd_fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 814b661

Please sign in to comment.