[U-Boot] [U-Boot, v5, 30/30] env: Adjust the load() method to return an error

Tom Rini trini at konsulko.com
Wed Aug 16 13:55:19 UTC 2017


On Thu, Aug 03, 2017 at 12:22:17PM -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>

Applied to u-boot/master, thanks!

-- 
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/20170816/05eca8e3/attachment.sig>


More information about the U-Boot mailing list