]> git.baikalelectronics.ru Git - kernel.git/commit
vt: selection, localize use_unicode
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 Feb 2020 07:39:46 +0000 (08:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2020 07:35:38 +0000 (08:35 +0100)
commitc2f696dbc661e9e63f217b80cd2d362c9b786d23
tree74db6784c9c6d346989beee13c9314ffa8831189
parent5c0a7f8645a97eceba939c57fd89d93ba58cfeaf
vt: selection, localize use_unicode

use_unicode needs not be global. It is used only in set_selection_kernel
and sel_pos (a callee). It is also always set there prior calling
sel_pos. So make use_unicode local and rename it to plain shorter
"unicode". Finally, propagate it to sel_pos via parameter.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200219073951.16151-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/selection.c