[U-Boot] [U-Boot, PATCHv3] env: Correct case of no sub-init function

Tom Rini trini at konsulko.com
Sun Aug 20 23:30:04 UTC 2017

On Sun, Aug 20, 2017 at 11:41:40AM -0400, Tom Rini wrote:

> With the change to the environment code to remove the common init stage
> of pointing to the default environment and setting it as valid, combined
> with the change to switch gd->env_valid from 0/1/2 to an enum we now
> must set env_valid to one of the enum values rather than an int.  And in
> this case, not only was setting it to an int wrong, it was now the wrong
> value.  Finally, in the case of ENV_IS_NOWHERE we must still say that
> our envionrment is invalid after init for things to continue to
> function.
> Fixes: 7938822a6b75 ("env: Drop common init() functions")
> Tested-by: Marek Vasut <marek.vasut at gmail.com>
> Reported-by: Marek Vasut <marek.vasut at gmail.com>
> Reported-by: Andy Shevchenko <andy.shevchenko at gmail.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-------------- 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/20170820/930f7e3e/attachment.sig>

More information about the U-Boot mailing list