Skip to content

Commit

Permalink
tty: Fix comments for tty_ldisc_release()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Jan 27, 2016
1 parent c0cc1c5 commit 5b6e683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/tty/tty_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b6e683

Please sign in to comment.