From: Tom Rini Date: Mon, 12 Jun 2017 18:43:51 -0400 Subject: [U-Boot] [U-Boot, 09/10] board_f: Use IS_ENABLED instead of #ifdef in initf_bootstage() In-Reply-To: <20170607162847.16971-10-sjg@chromium.org> References: <20170607162847.16971-10-sjg@chromium.org> Message-ID: <20170612224351.GV10782@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 Wed, Jun 07, 2017 at 10:28:46AM -0600, Simon Glass wrote: > The current implementation makes it look like the 'if (from_spl)' part is > dead code because these features are not enabled for sandbox. We could > enable it for sandbox_spl, but this is not done yet (it requires sharing > memory between SPL and U-Boot proper which is in fact supported). > > It is probably nicer to avoid #ifdef anyway. Change it. > > Signed-off-by: Simon Glass > Reported-by: Coverity (CID: 163244) > Fixes: 824bb1b (bootstage: Support SPL) Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: