[U-Boot] [PATCH v2 26/34] env: Drop unused env_ptr variables

Tom Rini
2017-07-26T16:14:44Z

On Sun, Jul 23, 2017 at 09:20:01PM -0600, Simon Glass wrote:

> 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>

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170726/13e032c0/attachment.sig>