common/main: support bootdelay=0 for CONFIG_AUTOBOOT_KEYED
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 10 Dec 2008 15:24:16 +0000 (16:24 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 24 Jan 2009 00:24:15 +0000 (01:24 +0100)
commitc3284b030b1cd492b4f46c576aea01bef258599d
treebbacd1476ff20d14e498de09cd2e6e429eaf5a1e
parent94f9279f7bbdc01bbc7cf85aedf9b545943b94c3
common/main: support bootdelay=0 for CONFIG_AUTOBOOT_KEYED

Support bootdelay=0 in abortboot for the CONFIG_AUTOBOOT_KEYED case
similar to the CONFIG_ZERO_BOOTDELAY_CHECK support for the
!CONFIG_AUTOBOOT_KEYED case.

Do this by reversing the loop so we do at least one iteration before
checking for timeout.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
common/main.c