Skip to content
Snippets Groups Projects
Commit 896db84c authored by Michael Heimpold's avatar Michael Heimpold Committed by Stefano Babic
Browse files

libuboot_read_multiple_config: clamp return value


According to the documentation, the function returns zero on success,
else a negative value.

However, at the moment the return value of parse_yaml_config might
also be passed through which can be FAILURE (define as 1).

So map this one to a generic -1 and pass all other as-is
to match the documented API.

Signed-off-by: default avatarMichael Heimpold <mhei@heimpold.de>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 7e63cb1c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment