diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:51:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 14:30:21 -0500 |
commit | a8fbc974c347a798fd0c6f0bffe7bf46b8c6dfb6 (patch) | |
tree | f2ae6ea857692b0bbee2c05b0766c8931f2c873d | |
parent | f8a8c10f4a662dcf3cb621d7a3eba564c5963284 (diff) |
TTY: tty_io, remove buffer re-assignments
TTY buffer head and tail are initialized in tty_buffer_init. No need
to do it once again in initialize_tty_struct where tty_buffer_init is
called.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/tty_io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 44736f9e61d7..f105ce5c8e6e 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c | |||
@@ -2933,7 +2933,6 @@ void initialize_tty_struct(struct tty_struct *tty, | |||
2933 | tty->session = NULL; | 2933 | tty->session = NULL; |
2934 | tty->pgrp = NULL; | 2934 | tty->pgrp = NULL; |
2935 | tty->overrun_time = jiffies; | 2935 | tty->overrun_time = jiffies; |
2936 | tty->buf.head = tty->buf.tail = NULL; | ||
2937 | tty_buffer_init(tty); | 2936 | tty_buffer_init(tty); |
2938 | mutex_init(&tty->termios_mutex); | 2937 | mutex_init(&tty->termios_mutex); |
2939 | mutex_init(&tty->ldisc_mutex); | 2938 | mutex_init(&tty->ldisc_mutex); |