From: Tom Rini Date: Sun, 20 Aug 2017 19:30:04 -0400 Subject: [U-Boot] [U-Boot, PATCHv3] env: Correct case of no sub-init function In-Reply-To: <1503243700-22835-1-git-send-email-trini@konsulko.com> References: <1503243700-22835-1-git-send-email-trini@konsulko.com> Message-ID: <20170820233004.GD17193@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reported-by: Marek Vasut > Reported-by: Andy Shevchenko > Signed-off-by: Tom Rini 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: