]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Serial: Remove unused code.
authorGovindraj.R <govindraj.raja@ti.com>
Mon, 18 Apr 2011 14:57:35 +0000 (20:27 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:33:37 +0000 (16:33 -0700)
Remove stale code in serial_core layer.

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c

index 1d7aedca05b5ffc3a317f7bf3458cb11e33e5613..55965d5b81433df693b03ab06413f828a243ead6 100644 (file)
@@ -1242,17 +1242,6 @@ static void uart_set_termios(struct tty_struct *tty,
                }
                spin_unlock_irqrestore(&state->uart_port->lock, flags);
        }
-#if 0
-       /*
-        * No need to wake up processes in open wait, since they
-        * sample the CLOCAL flag once, and don't recheck it.
-        * XXX  It's not clear whether the current behavior is correct
-        * or not.  Hence, this may change.....
-        */
-       if (!(old_termios->c_cflag & CLOCAL) &&
-           (tty->termios->c_cflag & CLOCAL))
-               wake_up_interruptible(&state->uart_port.open_wait);
-#endif
 }
 
 /*