[U-Boot] [U-Boot, v5, 06/30] env: common: Factor out the common env_valid check

Tom Rini trini at konsulko.com
Wed Aug 16 13:53:22 UTC 2017


On Thu, Aug 03, 2017 at 12:21:53PM -0600, Simon Glass wrote:

> The check for gd->env_valid is used in both the 'if' and 'else' part of
> env_get_char(). Move it into that function instead for simplicity. Drop
> that code from the two leaf functions.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at konsulko.com>

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/8fbb1561/attachment.sig>


More information about the U-Boot mailing list