From d15ce77267b9032b921dd42eafe673ad554b06af Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 14 Jul 2010 11:17:26 +0100 Subject: [PATCH] [cmdline] Fix inconsistent and ugly code formatting in shell_banner() Signed-off-by: Michael Brown --- src/hci/shell_banner.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c index 8d2a5d0c7..07c0fa4aa 100644 --- a/src/hci/shell_banner.c +++ b/src/hci/shell_banner.c @@ -41,10 +41,11 @@ int shell_banner ( void ) { int wait_count; int key; - if ( BANNER_TIMEOUT <= 0 ) { - return enter_shell; - } + /* Skip prompt if timeout is zero */ + if ( BANNER_TIMEOUT <= 0 ) + return 0; + /* Display prompt */ printf ( "\nPress Ctrl-B for the iPXE command line..." ); /* Wait for key */