mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
b9c8ccaba7
commit
39b924a304
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue