main: Use conditional run_preboot_environment_command()
authorSimon Glass <sjg@chromium.org>
Sun, 21 Jul 2019 02:51:11 +0000 (20:51 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 2 Aug 2019 15:17:58 +0000 (11:17 -0400)
commite9f6a374659026322623d8b59bc9622dd6f3138e
treeb565be1c696e4e2417478a46d4f7eab3445519a9
parentbbaf56eda0e63d6d28fbccae0f112ef88203eb4d
main: Use conditional run_preboot_environment_command()

The function name indicates that it does something, but its entire
operation is actually condition on a CONFIG. Move the condition outside
the function so this is clearer, and use if() instead of #ifdef, like the
reset of the file.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/main.c