summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/crisv10.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-03-31 15:55:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-06 22:26:57 +0200
commit1d6b98774cff82860a3f044610e956bcbff556c1 (patch)
treec959dc2546bdaf01d8c29cd49530561049f11b1e /drivers/tty/serial/crisv10.c
parentcaec172d57fde299ee4f4b05c851a059771fd5b7 (diff)
downloadop-kernel-dev-1d6b98774cff82860a3f044610e956bcbff556c1.zip
op-kernel-dev-1d6b98774cff82860a3f044610e956bcbff556c1.tar.gz
tty: constify return type of tty_name
All users of tty_name pass the result directly to a printf-like function. This means we can actually let tty_name return the literal "NULL tty" or tty->name directly, avoiding the strcpy and a lot of medium-sized stack buffers. In preparation for that, make the return type const char*. While at it, we can also constify the tty parameter. 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/serial/crisv10.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud