diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-03-31 15:55:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-06 22:26:57 +0200 |
commit | 917162c936936a37c51265b3add3885a15e66a82 (patch) | |
tree | 32be013b6c990971b84115fe3305d36dccbb8bba /drivers/tty/cyclades.c | |
parent | tty: constify return type of tty_name (diff) | |
download | linux-917162c936936a37c51265b3add3885a15e66a82.tar.xz linux-917162c936936a37c51265b3add3885a15e66a82.zip |
tty: return tty->name directly from tty_name
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>
Diffstat (limited to 'drivers/tty/cyclades.c')
0 files changed, 0 insertions, 0 deletions