From: Jiri Slaby Date: Mon, 5 Mar 2012 13:51:49 +0000 (+0100) Subject: TTY: tty_io, remove buffer re-assignments X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a8fbc974c347a798fd0c6f0bffe7bf46b8c6dfb6;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, tty->session = NULL; tty->pgrp = NULL; tty->overrun_time = jiffies; - tty->buf.head = tty->buf.tail = NULL; tty_buffer_init(tty); mutex_init(&tty->termios_mutex); mutex_init(&tty->ldisc_mutex);