]> git.ipfire.org Git - people/ms/u-boot.git/commit
env: Drop unused env_ptr variables
authorSimon Glass <sjg@chromium.org>
Thu, 3 Aug 2017 18:22:04 +0000 (12:22 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 16 Aug 2017 00:50:28 +0000 (20:50 -0400)
commit98b5755fb0484ac575b66784865bde2b30ea1d87
treea193900623bfc951c11239daf3409be84622a79c
parentac358beb85362fb2fac47aaec40a7e1bca49656c
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>
env/dataflash.c
env/eeprom.c
env/ext4.c
env/fat.c
env/mmc.c
env/nowhere.c
env/nvram.c
env/ubi.c