[U-Boot] [PATCH v2 16/34] env: common: Factor out the common env_valid check
Tom Rini
trini at konsulko.com
Wed Jul 26 16:13:56 UTC 2017
On Sun, Jul 23, 2017 at 09:19:51PM -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>
--
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/b114329f/attachment.sig>
More information about the U-Boot
mailing list