Browse Source

[cmdline] Fix inconsistent and ugly code formatting in shell_banner()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
d15ce77267
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/hci/shell_banner.c

+ 4
- 3
src/hci/shell_banner.c View File

@@ -41,10 +41,11 @@ int shell_banner ( void ) {
41 41
 	int wait_count;
42 42
 	int key;
43 43
 
44
-	if ( BANNER_TIMEOUT <=  0 ) {
45
-		return enter_shell;
46
-	}
44
+	/* Skip prompt if timeout is zero */
45
+	if ( BANNER_TIMEOUT <= 0 )
46
+		return 0;
47 47
 
48
+	/* Display prompt */
48 49
 	printf ( "\nPress Ctrl-B for the iPXE command line..." );
49 50
 
50 51
 	/* Wait for key */

Loading…
Cancel
Save