From: Tom Rini Date: Fri, 28 Mar 2014 16:03:35 +0000 (-0400) Subject: env_mmc.c: Remove NULL check on tmp_env1/2 X-Git-Tag: v2014.07-rc1~2^2~3^2~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39b924a30465be6cc5ed009b4983cbc8c525e665;p=oweals%2Fu-boot.git env_mmc.c: Remove NULL check on tmp_env1/2 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 --- diff --git a/common/env_mmc.c b/common/env_mmc.c index d42168b773..f47bd77725 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;