board_f: Use IS_ENABLED instead of #ifdef in initf_bootstage()
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:46 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:11 +0000 (08:38 -0400)
commitbaa7d345fb2a7aaee31af6d77f2a790e89864af6
tree931fa406d131d40d493720a8817547091aff0235
parent73027a853d2d9324ef2b15d5a860da3e3126321d
board_f: Use IS_ENABLED instead of #ifdef in initf_bootstage()

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@chromium.org>
Reported-by: Coverity (CID: 163244)
Fixes: 824bb1b (bootstage: Support SPL)
common/board_f.c