From: Keerthy Date: Wed, 22 Jan 2020 09:29:56 +0530 Subject: [PATCH v4 01/10] env: nowhere: set default enviroment In-Reply-To: <20200122040005.7573-1-j-keerthy@ti.com> References: <20200122040005.7573-1-j-keerthy@ti.com> Message-ID: <20200122040005.7573-2-j-keerthy@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy --- Changes in v4: * Reworded commit log env/nowhere.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652..70c3b3e011 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -23,6 +23,7 @@ static int env_nowhere_init(void) { gd->env_addr = (ulong)&default_environment[0]; gd->env_valid = ENV_INVALID; + env_set_default(NULL, 0); return 0; } -- 2.17.1