Remove some unwanted code, patch from Holger Schurig, confirmed by vodz
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 29 Aug 2003 16:19:03 +0000 (16:19 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 29 Aug 2003 16:19:03 +0000 (16:19 -0000)
libbb/get_console.c

index 1b24ceb..9eb4190 100644 (file)
@@ -86,10 +86,6 @@ int get_console_fd(void)
 {
        int fd;
 
-       if (-1 == (fd = open_a_console("/dev/console")))
-                       return -1;
-               else
-                       return fd;
        fd = open_a_console(CURRENT_TTY);
        if (fd >= 0)
                return fd;