[U-Boot] [PATCH v3 24/24] env: Adjust the load() method to return an error
Tom Rini
trini at konsulko.com
Wed Jul 26 17:44:07 UTC 2017
On Wed, Jul 26, 2017 at 11:19:48AM -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 at chromium.org>
Reviewed-by: Tom Rini <trini at 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/b23d224a/attachment.sig>
More information about the U-Boot
mailing list