lkml.org 
[lkml]   [2015]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/19] tty: Fix comments for tty_ldisc_release()
    Date
    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>
    ---
    drivers/tty/tty_ldisc.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
    index 33764ea..e769f5a 100644
    --- a/drivers/tty/tty_ldisc.c
    +++ b/drivers/tty/tty_ldisc.c
    @@ -779,8 +779,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)
    --
    2.6.3


    \
     
     \ /
      Last update: 2015-11-27 23:01    [W:4.123 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site