From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 16 Aug 2017 09:53:22 -0400 Subject: [U-Boot] [U-Boot, v5, 06/30] env: common: Factor out the common env_valid check In-Reply-To: <20170803182217.149285-7-sjg@chromium.org> References: <20170803182217.149285-7-sjg@chromium.org> Message-ID: <20170816135322.GP20467@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:21:53PM -0600, Simon Glass wrote: > The check for gd->env_valid is used in both the 'if' and 'else' part of > env_get_char(). Move it into that function instead for simplicity. Drop > that code from the two leaf functions. > > 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: