Home
last modified time | relevance | path

Searched hist:"072 c8c4cedad87c4be4edca259e1760d7db42e1b" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/lib/
H A Dsemihosting.c072c8c4cedad87c4be4edca259e1760d7db42e1b Thu Mar 02 17:45:16 UTC 2017 Ryan Harkin <ryan.harkin@linaro.org> 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>