[U-Boot] [PATCH v2 34/34] env: Adjust the load() method to return an error

Tom Rini
2017-07-26T16:15:30Z

On Sun, Jul 23, 2017 at 09:20:09PM -0600, Simon Glass wrote:

> The load() methods have inconsistent behaviour on error. Some of them load
> an empty default environment. Some load an environment containing an error
> message. Others do nothing.
>
> As a step in the right direction, have the method return an error code.
> Then the caller could handle this itself in a consistent way.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Tom Rini <trini@konsulko.com>

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170726/988a1144/attachment.sig>