Ryan Harkin 072c8c4ced do_smhload: fix return code
do_smhload was using a ulong to store the return value from
smh_load_file. That returns an int, where -1 indicates an error. As a
ulong will never be negative, smh_load_file errors were not detected and
so_smhload always returned zero.

Also, when errors were spotted, do_smhload was returning 1, rather than
the enumeration CMD_RET_FAILURE (which is also 1).

Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
2017-03-09 19:52:14 -05:00
..
2016-11-14 23:24:04 +01:00
2014-10-26 22:23:40 +01:00
2016-11-14 23:24:04 +01:00
2015-10-15 14:47:03 +02:00
2016-11-14 23:24:04 +01:00
2017-03-09 19:52:14 -05:00
2016-05-02 18:37:09 -04:00
2016-07-22 09:53:00 -04:00