[U-Boot] [PATCH v2 34/34] env: Adjust the load() method to return an error
Tom Rini
trini at konsulko.com
Wed Jul 26 16:15:30 UTC 2017
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 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/988a1144/attachment.sig>
More information about the U-Boot
mailing list