[U-Boot] [U-Boot, 09/10] board_f: Use IS_ENABLED instead of #ifdef in initf_bootstage()
Tom Rini
trini at konsulko.com
Mon Jun 12 22:43:51 UTC 2017
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 <sjg at chromium.org>
> Reported-by: Coverity (CID: 163244)
> Fixes: 824bb1b (bootstage: Support SPL)
Reviewed-by: Tom Rini <trini at 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/20170612/0470bd88/attachment.sig>
More information about the U-Boot
mailing list