From: Tom Rini Date: Wed, 16 Aug 2017 09:54:14 -0400 Subject: [U-Boot] [U-Boot,v5,17/30] env: Drop unused env_ptr variables In-Reply-To: <20170803182217.149285-18-sjg@chromium.org> References: <20170803182217.149285-18-sjg@chromium.org> Message-ID: <20170816135414.GA20467@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Aug 03, 2017 at 12:22:04PM -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 > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: