env: Drop unused env_ptr variables

This variable is declared as a global in most environment location
drivers. But it is not used outside the drivers and most of the
declarations are unnecessary.

Also some drivers call free() on env_ptr which seems wrong since it is
not in the heap.

Drop the variable where possible, and all calls to free().

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass
2017-08-03 12:22:04 -06:00
committed by Tom Rini
parent ac358beb85
commit 98b5755fb0
8 changed files with 0 additions and 21 deletions

2
env/ext4.c vendored
View File

@@ -31,8 +31,6 @@
#include <ext4fs.h>
#include <mmc.h>
env_t *env_ptr;
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_CMD_SAVEENV