From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 28 Mar 2014 12:03:35 -0400 Subject: [U-Boot] [PATCH v3 03/10] env_mmc.c: Remove NULL check on tmp_env1/2 In-Reply-To: <1396022622-3527-1-git-send-email-trini@ti.com> References: <1396022622-3527-1-git-send-email-trini@ti.com> Message-ID: <1396022622-3527-3-git-send-email-trini@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 With 452a272 we moved to allocating these variables on the stack. So they will never now be NULL so remove these checks. Signed-off-by: Tom Rini --- common/env_mmc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/env_mmc.c b/common/env_mmc.c index d42168b..f47bd77 100644 --- a/common/env_mmc.c +++ b/common/env_mmc.c @@ -220,12 +220,6 @@ void env_relocate_spec(void) mmc = find_mmc_device(dev); - if (tmp_env1 == NULL || tmp_env2 == NULL) { - puts("Can't allocate buffers for environment\n"); - ret = 1; - goto err; - } - if (init_mmc_for_env(mmc)) { ret = 1; goto err; -- 1.7.9.5