projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a8c10
)
TTY: tty_io, remove buffer re-assignments
author
Jiri Slaby
<jslaby@suse.cz>
Mon, 5 Mar 2012 13:51:49 +0000
(14:51 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 19:30:21 +0000
(11:30 -0800)
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>
drivers/tty/tty_io.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index 44736f9e61d71fa9d8ef58cc9bb57cf446f46dbe..f105ce5c8e6e47a517ea7983c2279725a99b7fc6 100644
(file)
--- 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);