[PATCH 3/9] part: Give several functions more useful return values
Simon Glass
sjg at chromium.org
Thu Jan 7 13:35:48 CET 2021
On Thu, 31 Dec 2020 at 15:49, Sean Anderson <sean.anderson at seco.com> wrote:
>
> Several functions in disk/part.c just return -1 on error. This makes them
> return different errnos for different failures. This helps callers
> differentiate between failures, even if they cannot read stdout.
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> ---
>
> disk/part.c | 50 ++++++++++++++++++++++++++++----------------------
> 1 file changed, 28 insertions(+), 22 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list