autoboot: Tidy up use of menukey
authorSimon Glass <sjg@chromium.org>
Sun, 21 Jul 2019 02:51:23 +0000 (20:51 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 2 Aug 2019 15:19:14 +0000 (11:19 -0400)
commitd915ad277a96d2fa23268e3860a885d852398dfb
treeb81ca4558a5b912c103a87595ae11ff07da55c9b
parentdaedaada38b89b7d4ca14b01d7c3eb775cf5a0a8
autoboot: Tidy up use of menukey

Move the variable to the top of the file and adjust the code which uses it
to use if() rather than #ifdef, to make it easier to read.

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