]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd_fuse: return CMD_RET_FAILURE on error
authorHector Palacios <hector.palacios@digi.com>
Thu, 20 Nov 2014 08:27:42 +0000 (09:27 +0100)
committerTom Rini <trini@ti.com>
Mon, 8 Dec 2014 14:35:43 +0000 (09:35 -0500)
commit814b661448d50462c37232a456d3d09450fd9f72
tree2d51b5fa2331cd1dfa6411c0b3e886f2fc15a24f
parenta5a83dc9dc7f4b29f7ceda1007bdac1a49219e2c
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>
common/cmd_fuse.c