From: Michael Brown Date: Wed, 14 Jul 2010 10:17:26 +0000 (+0100) Subject: [cmdline] Fix inconsistent and ugly code formatting in shell_banner() X-Git-Tag: v1.20.1~2614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d15ce77267b9032b921dd42eafe673ad554b06af;p=thirdparty%2Fipxe.git [cmdline] Fix inconsistent and ugly code formatting in shell_banner() Signed-off-by: Michael Brown --- 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 */