git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6b987
)
tty: return tty->name directly from tty_name
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Tue, 31 Mar 2015 13:55:58 +0000
(15:55 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:26:57 +0000
(22:26 +0200)
All users of tty_name pass the return value (the provided buffer) to
some printf-like function. We can thus avoid the strcpy and, more
importantly, later remove the buf parameter completely, eliminating
the need for some 64 byte stack buffers.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
patch
|
blob
|
history
diff --cc
drivers/tty/tty_io.c
Simple merge