From: Rasmus Villemoes Date: Tue, 31 Mar 2015 13:55:57 +0000 (+0200) Subject: tty: constify return type of tty_name X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6b98774cff82860a3f044610e956bcbff556c1;p=pandora-kernel.git 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 Reviewed-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed