summaryrefslogtreecommitdiff
path: root/common/env_mmc.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-03-28 12:03:35 -0400
committerTom Rini <trini@ti.com>2014-04-17 14:39:54 -0400
commit39b924a30465be6cc5ed009b4983cbc8c525e665 (patch)
tree8a130c7b5a73ef1c4739822b95b0f37d7c9a3ae7 /common/env_mmc.c
parentb9c8ccaba77b24f7a1b4756a927f19dccf895954 (diff)
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 <trini@ti.com>
Diffstat (limited to 'common/env_mmc.c')
-rw-r--r--common/env_mmc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/env_mmc.c b/common/env_mmc.c
index d42168b7737..f47bd777256 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;