env_mmc.c: Remove NULL check on tmp_env1/2
authorTom Rini <trini@ti.com>
Fri, 28 Mar 2014 16:03:35 +0000 (12:03 -0400)
committerTom Rini <trini@ti.com>
Thu, 17 Apr 2014 18:39:54 +0000 (14:39 -0400)
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 <trini@ti.com>
common/env_mmc.c

index d42168b7737852db3bda78ea83bf9bd4b0d6e3f1..f47bd777256f0bdee6252d69eaa940010620f1d0 100644 (file)
@@ -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;