]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[cmdline] Fix inconsistent and ugly code formatting in shell_banner()
authorMichael Brown <mcb30@ipxe.org>
Wed, 14 Jul 2010 10:17:26 +0000 (11:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 14 Jul 2010 10:17:26 +0000 (11:17 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/shell_banner.c

index 8d2a5d0c79de08697e2509de78226eab738afa49..07c0fa4aab7b8996fa2713209c0d802e276222b5 100644 (file)
@@ -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 */