tty: Fix comments for tty_ldisc_release()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 06:41:00 +0000 (22:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 23:01:44 +0000 (15:01 -0800)
tty_ldisc_kill() sets tty->ldisc to NULL; _not_ to N_TTY with a valid
but unopened ldisc. Fix function header documentation.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c

index 4008f5f..14d2165 100644 (file)
@@ -757,8 +757,7 @@ static void tty_ldisc_kill(struct tty_struct *tty)
  *     @tty: tty being shut down (or one end of pty pair)
  *
  *     Called during the final close of a tty or a pty pair in order to shut
- *     down the line discpline layer. On exit, each ldisc assigned is N_TTY and
- *     each ldisc has not been opened.
+ *     down the line discpline layer. On exit, each tty's ldisc is NULL.
  */
 
 void tty_ldisc_release(struct tty_struct *tty)